EditAsset: remove reference to old admin bar

This commit is contained in:
2023-03-12 00:39:15 +01:00
parent 2c24a0a7e7
commit 70fcd097cc
3 changed files with 1 additions and 6 deletions

View File

@@ -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)

View File

@@ -12,7 +12,6 @@
abstract class HTMLController
{
protected $page;
protected $admin_bar;
public function __construct($title)
{