1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

API - THEME_LAYOUT warning removal, minor improvement

This commit is contained in:
secretr
2009-08-27 12:56:23 +00:00
parent a8e0abd079
commit a31c62c2a4

View File

@@ -9,9 +9,9 @@
* General purpose file * General purpose file
* *
* $Source: /cvs_backup/e107_0.8/class2.php,v $ * $Source: /cvs_backup/e107_0.8/class2.php,v $
* $Revision: 1.132 $ * $Revision: 1.133 $
* $Date: 2009-08-20 13:54:40 $ * $Date: 2009-08-27 12:56:23 $
* $Author: e107coders $ * $Author: secretr $
* *
*/ */
// //
@@ -1107,13 +1107,15 @@ if(!defined("THEME_LAYOUT"))
{ {
foreach($cusPagePref as $lyout=>$cusPageArray) foreach($cusPagePref as $lyout=>$cusPageArray)
{ {
if(!is_array($cusPageArray)) { break; }
foreach($cusPageArray as $kpage) foreach($cusPageArray as $kpage)
{ {
if ($kpage && (strstr(e_SELF, $kpage) || strstr(e_SELF."?".e_QUERY,$kpage))) if ($kpage && (strstr(e_SELF, $kpage) || strstr(e_SELF."?".e_QUERY,$kpage)))
{ {
// $def = ($lyout) ? $lyout : "legacyCustom"; // $def = ($lyout) ? $lyout : "legacyCustom";
$def = $lyout; $def = $lyout;
break; break 2;
} }
} }
} }