diff --git a/class2.php b/class2.php index f710186a2..3cc369a90 100644 --- a/class2.php +++ b/class2.php @@ -908,7 +908,8 @@ if(!defined("THEME_LAYOUT")) if(is_array($cusPagePref) && count($cusPagePref)>0) // check if we match a page in layout custompages. { - $c_url = e_SELF.(e_QUERY ? '?'.e_QUERY : ''); //TODO rewritten URLs? + //e_SELF.(e_QUERY ? '?'.e_QUERY : ''); + $c_url = e_REQUEST_URL;// mod_rewrite support foreach($cusPagePref as $lyout=>$cusPageArray) { if(!is_array($cusPageArray)) { continue; }