1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Fixes #4790 - e_DEBUG not defined.

This commit is contained in:
Cameron
2022-06-12 11:05:05 -07:00
parent 52cf8f5bfa
commit ce3f0be05a
4 changed files with 4 additions and 4 deletions

View File

@@ -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');

View File

@@ -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);
}

View File

@@ -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!";
}

View File

@@ -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)));
}