mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 18:53:58 -04:00
Fix up the titles in the default theme. They've been broken for a
while. This fixes ticket #342. The bug is that we were using $item instead of $theme->item(). But we were also not special casing tags properly, and they are effectively first class citizens (at least for now) so treat them properly. Also, set page_title by default in the theme so that we don't have to do an empty() check on it (makes the theme easier to read) and move the title out of Tags_Controller so that the theme has more control over it.
This commit is contained in:
@@ -47,6 +47,7 @@ class Theme_View_Core extends View {
|
||||
$this->set_global("theme", $this);
|
||||
$this->set_global("user", user::active());
|
||||
$this->set_global("page_type", $page_type);
|
||||
$this->set_global("page_title", null);
|
||||
if ($page_type == "album") {
|
||||
$this->set_global("thumb_proportion", $this->thumb_proportion());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user