Updated post title extension to resolve set_title being removed from display image event
Resolves #724
This commit is contained in:
parent
830915adf2
commit
6145ecc6f8
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ class PostTitles extends Extension
|
|||
|
||||
public function onDisplayingImage(DisplayingImageEvent $event)
|
||||
{
|
||||
global $config;
|
||||
global $config, $page;
|
||||
|
||||
if ($config->get_bool(PostTitlesConfig::SHOW_IN_WINDOW_TITLE)) {
|
||||
$event->set_title(self::get_title($event->get_image()));
|
||||
$page->set_title(self::get_title($event->get_image()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue