From 70fcd097cc0b3e1f1f099384d6ae1f358ab595e2 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 12 Mar 2023 00:39:15 +0100 Subject: [PATCH] EditAsset: remove reference to old admin bar --- controllers/EditAsset.php | 4 ---- controllers/HTMLController.php | 1 - templates/PhotoPage.php | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/controllers/EditAsset.php b/controllers/EditAsset.php index 8fc7bf4..a6ca7f9 100644 --- a/controllers/EditAsset.php +++ b/controllers/EditAsset.php @@ -94,10 +94,6 @@ class EditAsset extends HTMLController $page = new EditAssetForm($asset, $thumbs); parent::__construct('Edit asset \'' . $asset->getTitle() . '\' (' . $asset->getFilename() . ') - ' . SITE_TITLE); $this->page->adopt($page); - - // Add a view button to the admin bar for photos. - if ($asset->isImage()) - $this->admin_bar->appendItem($asset->getImage()->getPageUrl(), 'View this photo'); } private function getThumbs(Asset $asset) diff --git a/controllers/HTMLController.php b/controllers/HTMLController.php index a5d5236..f141638 100644 --- a/controllers/HTMLController.php +++ b/controllers/HTMLController.php @@ -12,7 +12,6 @@ abstract class HTMLController { protected $page; - protected $admin_bar; public function __construct($title) { diff --git a/templates/PhotoPage.php b/templates/PhotoPage.php index 932abc0..b2d663f 100644 --- a/templates/PhotoPage.php +++ b/templates/PhotoPage.php @@ -250,7 +250,7 @@ class PhotoPage extends Template echo '

Actions

- Edit photo + Edit photo Delete photo
'; }