Skip to content

Commit

Permalink
Fix Factory reference. Ref #21304
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Aug 23, 2018
1 parent cb6507f commit 4d46a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/src/Document/ErrorDocument.php
Expand Up @@ -10,7 +10,7 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Factory as CmsFactory;
use Joomla\CMS\Layout\LayoutHelper;

/**
Expand Down Expand Up @@ -122,14 +122,14 @@ public function render($cache = false, $params = array())
$status = 500;
}

$errorReporting = Factory::getConfig()->get('error_reporting');
$errorReporting = CmsFactory::getConfig()->get('error_reporting');

if ($errorReporting === "development" || $errorReporting === "maximum")
{
$status .= ' ' . str_replace("\n", ' ', $this->_error->getMessage());
}

Factory::getApplication()->setHeader('status', $status);
CmsFactory::getApplication()->setHeader('status', $status);

// Set variables
$this->debug = $params['debug'] ?? false;
Expand Down

0 comments on commit 4d46a67

Please sign in to comment.