This should fix the "Undefined variable" error.
This commit is contained in:
parent
ad2bb8b8b6
commit
3b73013d1d
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
class CustomViewImageTheme extends ViewImageTheme {
|
||||
public function display_page($image, $editor_parts) {
|
||||
global $page;
|
||||
$metatags = str_replace(" ", ", ", html_escape($image->get_tag_list()));
|
||||
$page->set_title("Image {$image->id}: ".html_escape($image->get_tag_list()));
|
||||
$page->set_heading(html_escape($image->get_tag_list()));
|
||||
$page->add_html_header("<meta name=\"keywords\" content=\"$metatags\">");
|
||||
|
|
Reference in a new issue