From: kink Date: Sat, 14 Jul 2007 17:56:47 +0000 (+0000) Subject: use PAGE_NAME in themes and templates X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=101068d9a51a7fd4b600de878f1e2d5349e209a3;p=squirrelmail.git use PAGE_NAME in themes and templates git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12535 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default_advanced/page_header.tpl b/templates/default_advanced/page_header.tpl index 08b147cf..4befc0d2 100644 --- a/templates/default_advanced/page_header.tpl +++ b/templates/default_advanced/page_header.tpl @@ -64,10 +64,10 @@ $help_link = makeInternalLink ('src/help.php', $help_str); var first_frame = 0; @@ -180,16 +179,15 @@ $help_link = makeInternalLink ('src/help.php', $help_str); } if (self.name == 'right') { diff --git a/themes/darkness.php b/themes/darkness.php index ccd202b0..8dac3df6 100755 --- a/themes/darkness.php +++ b/themes/darkness.php @@ -42,9 +42,8 @@ function IsUnique($Distance, $r, $g, $b, $usedArray) // Always tremble background // This might make people go insane. Yes! *Victory dance!* function Darkness_HeaderPlugin() { - global $PHP_SELF; - if (substr($PHP_SELF, -18) == '/src/left_main.php') { + if (defined('PAGE_NAME') && PAGE_NAME=='left_main') { echo '' . "\n"; }