From f70f0c6d169c8ad26088ef33d7d463598f16d857 Mon Sep 17 00:00:00 2001 From: e107steved Date: Mon, 4 Jun 2007 19:20:51 +0000 Subject: [PATCH] Bugtracker #3969 - handle exact matches in custompages --- e107_themes/templates/header_default.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_themes/templates/header_default.php b/e107_themes/templates/header_default.php index 07835f6a4..cbf943195 100644 --- a/e107_themes/templates/header_default.php +++ b/e107_themes/templates/header_default.php @@ -6,9 +6,9 @@ | Released under the terms and conditions of the GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $ -| $Revision: 1.6 $ -| $Date: 2007-01-23 22:44:47 $ -| $Author: e107coders $ +| $Revision: 1.7 $ +| $Date: 2007-06-04 19:20:38 $ +| $Author: e107steved $ +-----------------------------------------------------------------------------------------------+ */ @@ -361,9 +361,10 @@ if ($e107_popup != 1) { if (e_PAGE == 'news.php' && isset($NEWSHEADER)) { parseheader($NEWSHEADER); } else { + $full_query = e_SELF."?".e_QUERY."!"; foreach ($custompage as $key_extract => $cust_extract) { foreach ($cust_extract as $key => $kpage) { - if ($kpage && strstr(e_SELF, $kpage) || strstr(e_SELF."?".e_QUERY,$kpage)) { + if ($kpage && (strstr(e_SELF, $kpage) || strstr($full_query,$kpage))) { $ph = TRUE; if ($key_extract=='no_array') { $cust_header = $CUSTOMHEADER ? $CUSTOMHEADER : $HEADER;