Remove deprecated App::cmd - replace with DI::args()->getCommand()

This commit is contained in:
Philipp Holzer 2019-12-16 01:33:13 +01:00
commit 33674808dc
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
16 changed files with 23 additions and 25 deletions

View file

@ -846,7 +846,7 @@ function photos_content(App $a)
$phototypes = Images::supportedTypes();
$_SESSION['photo_return'] = $a->cmd;
$_SESSION['photo_return'] = DI::args()->getCommand();
// Parse arguments
$datum = null;
@ -1362,7 +1362,7 @@ function photos_content(App $a)
if (!empty($link_item['id']) && !empty($link_item['uri'])) {
$cmnt_tpl = Renderer::getMarkupTemplate('comment_item.tpl');
$tpl = Renderer::getMarkupTemplate('photo_item.tpl');
$return_path = $a->cmd;
$return_path = DI::args()->getCommand();
if ($cmd === 'view' && ($can_post || Security::canWriteToUserWall($owner_uid))) {
$like_tpl = Renderer::getMarkupTemplate('like_noshare.tpl');