mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Fixes #4790 - e_DEBUG not defined.
This commit is contained in:
@@ -773,7 +773,7 @@ class page_admin_ui extends e_admin_ui
|
||||
}
|
||||
|
||||
|
||||
if($this->getAction() == 'create' && e_DEBUG === true)
|
||||
if($this->getAction() == 'create' && deftrue('e_DEBUG'))
|
||||
{
|
||||
|
||||
$tmp = e107::getCoreTemplate('page', 'default');
|
||||
|
@@ -1655,7 +1655,7 @@ class e_file
|
||||
$zip->extractTo(e_TEMP);
|
||||
chmod(e_TEMP . $dir, 0755);
|
||||
|
||||
if(empty($dir) && e_DEBUG)
|
||||
if(empty($dir) && deftrue('e_DEBUG'))
|
||||
{
|
||||
print_a($fileinfo);
|
||||
}
|
||||
|
@@ -394,7 +394,7 @@ class eIPHandler
|
||||
|
||||
if(!is_readable($fileName)) // Note readable, but the IP is still banned, so half further script execution.
|
||||
{
|
||||
if($this->debug === true || e_DEBUG === true)
|
||||
if($this->debug === true || defset('e_DEBUG') === true)
|
||||
{
|
||||
echo "Your IP is banned!";
|
||||
}
|
||||
|
@@ -176,7 +176,7 @@ if(!class_exists('plugin_pm_pm_shortcodes'))
|
||||
{
|
||||
$frm = e107::getForm();
|
||||
|
||||
$exclude = (getperms('0') && e_DEBUG === true) ? false : true;
|
||||
$exclude = (getperms('0') && deftrue('e_DEBUG')) ? false : true;
|
||||
|
||||
$ret = $frm->userlist('pm_to',null,array('excludeSelf'=>$exclude, 'default'=>'blank', 'classes'=>varset($this->pmPrefs['send_to_class'], e_UC_MEMBER)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user