mirror of
https://github.com/e107inc/e107.git
synced 2025-07-22 23:41:20 +02:00
Installation fix.
This commit is contained in:
@@ -1393,15 +1393,21 @@ class e107
|
|||||||
*/
|
*/
|
||||||
public static function getTheme($themedir='front', $clearCache=false)
|
public static function getTheme($themedir='front', $clearCache=false)
|
||||||
{
|
{
|
||||||
if($themedir === 'front')
|
|
||||||
|
if(!defined('E107_INSTALL'))
|
||||||
{
|
{
|
||||||
$themedir= self::getPref('sitetheme');
|
|
||||||
|
if($themedir === 'front')
|
||||||
|
{
|
||||||
|
$themedir= self::getPref('sitetheme');
|
||||||
|
}
|
||||||
|
|
||||||
|
if($themedir === 'admin')
|
||||||
|
{
|
||||||
|
$themedir = self::getPref('admintheme');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($themedir === 'admin')
|
|
||||||
{
|
|
||||||
$themedir = self::getPref('admintheme');
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::getSingleton('e_theme', true, null, array('themedir'=> $themedir, 'force'=> $clearCache));
|
return self::getSingleton('e_theme', true, null, array('themedir'=> $themedir, 'force'=> $clearCache));
|
||||||
}
|
}
|
||||||
|
@@ -448,7 +448,16 @@ class e_theme
|
|||||||
{
|
{
|
||||||
if(strstr($line, "CUSTOMPAGES"))
|
if(strstr($line, "CUSTOMPAGES"))
|
||||||
{
|
{
|
||||||
eval(str_replace("$", "\$", $line)); // detect arrays also.
|
try
|
||||||
|
{
|
||||||
|
@eval(str_replace("$", "\$", $line)); // detect arrays also.
|
||||||
|
}
|
||||||
|
catch (ParseError $e)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -2121,7 +2121,7 @@ function template_data()
|
|||||||
|
|
||||||
<div class="masthead">
|
<div class="masthead">
|
||||||
<ul class="nav nav-pills pull-right" >
|
<ul class="nav nav-pills pull-right" >
|
||||||
<li class="active" style="width:200px;text-align:center" ><a href="#" >'.LANINS_134.' : {stage_pre} {stage_num} '.LANINS_135.' 8</a>
|
<li style="width:200px;text-align:center" ><a href="#" >'.LANINS_134.' : {stage_pre} {stage_num} '.LANINS_135.' 8</a>
|
||||||
<div class="progress progress-{bartype}">
|
<div class="progress progress-{bartype}">
|
||||||
<div class="progress-bar bar" style="width: {percent}%"></div>
|
<div class="progress-bar bar" style="width: {percent}%"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user