Automatically add sitename in page title.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 27 Jul 2008 20:27:29 +0000 (22:27 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 27 Jul 2008 20:27:29 +0000 (22:27 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plpage.php

index 7a28303..2dacba4 100644 (file)
@@ -242,6 +242,10 @@ abstract class PlPage extends Smarty
 
     public function setTitle($title)
     {
+        global $globals;
+        if (isset($globals->core->sitename)) {
+            $title = $globals->core->sitename . ' :: ' . $title;
+        }
         $this->assign('pl_title', $title);
     }