mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Prevent some PHP errors
This commit is contained in:
@@ -73,7 +73,7 @@ class ecache {
|
||||
// It's a page - need the query in the hash
|
||||
if (!$this->CachePageMD5)
|
||||
{
|
||||
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.e_QUERY.filemtime(THEME.'theme.php'));
|
||||
$this->CachePageMD5 = md5(e_BASE.e_LANGUAGE.THEME.USERCLASS_LIST.defset('e_QUERY').filemtime(THEME.'theme.php'));
|
||||
}
|
||||
$CheckTag = '_'.$this->CachePageMD5;
|
||||
}
|
||||
|
@@ -196,12 +196,12 @@ class redirection
|
||||
public function checkMaintenance()
|
||||
{
|
||||
// prevent looping.
|
||||
if(strpos(e_SELF, 'admin.php') !== FALSE || strpos(e_SELF, 'sitedown.php') !== FALSE)
|
||||
if(strpos(defset('e_SELF'), 'admin.php') !== FALSE || strpos(defset('e_SELF'), 'sitedown.php') !== FALSE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(e107::getPref('maintainance_flag') && e_PAGE != 'secure_img_render.php')
|
||||
if(e107::getPref('maintainance_flag') && defset('e_PAGE') != 'secure_img_render.php')
|
||||
{
|
||||
// if not admin
|
||||
if(!ADMIN
|
||||
|
Reference in New Issue
Block a user