1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Notice removal

This commit is contained in:
Cameron 2013-03-21 02:36:55 -07:00
parent 3968623022
commit f6b1bc9394
2 changed files with 12 additions and 8 deletions

View File

@ -1727,7 +1727,7 @@ class themeHandler
$vars['path'] = $path;
$vars['@attributes']['default'] = (varset($vars['@attributes']['default']) && strtolower($vars['@attributes']['default']) == 'true') ? 1 : 0;
$vars['preview'] = varset($vars['screenshots']['image']);
$vars['thumbnail'] = $vars['preview'][0];
$vars['thumbnail'] = varset($vars['preview'][0]);
unset($vars['authorEmail'], $vars['authorUrl'], $vars['xhtmlCompliant'], $vars['cssCompliant'], $vars['description'],$vars['screenshots']);
@ -1765,13 +1765,17 @@ class themeHandler
unset($val['@attributes']['name']);
$lays[$name] = $val;
if(is_string($val['custompages']))
if(isset($val['custompages']))
{
$custom[$name] = array_filter(explode(" ", $val['custompages']));
}
elseif(is_array($val['custompages']))
{
$custom[$name] = $val['custompages'];
if(is_string($val['custompages']))
{
$custom[$name] = array_filter(explode(" ", $val['custompages']));
}
elseif(is_array($val['custompages']))
{
$custom[$name] = $val['custompages'];
}
}
}

View File

@ -129,7 +129,7 @@ function tablestyle($caption, $text, $mode)
}
if(e_IFRAME === true)
if(deftrue('e_IFRAME'))
{
echo '
<div class="block">