Skip to content

Commit

Permalink
Fixes #4790 - e_DEBUG not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Jun 12, 2022
1 parent 52cf8f5 commit ce3f0be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e107_admin/cpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ function init()
}


if($this->getAction() == 'create' && e_DEBUG === true)
if($this->getAction() == 'create' && deftrue('e_DEBUG'))
{

$tmp = e107::getCoreTemplate('page', 'default');
Expand Down
2 changes: 1 addition & 1 deletion e107_handlers/file_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ public function unzipArchive($localfile, $type, $overwrite = false)
$zip->extractTo(e_TEMP);
chmod(e_TEMP . $dir, 0755);

if(empty($dir) && e_DEBUG)
if(empty($dir) && deftrue('e_DEBUG'))
{
print_a($fileinfo);
}
Expand Down
2 changes: 1 addition & 1 deletion e107_handlers/iphandler_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private function banAction($code)

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!";
}
Expand Down
2 changes: 1 addition & 1 deletion e107_plugins/pm/pm_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function sc_pm_form_touser()
{
$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)));
}
Expand Down

0 comments on commit ce3f0be

Please sign in to comment.