Skip to content
Snippets Groups Projects
Commit dfcad465 authored by Demian Katz's avatar Demian Katz
Browse files

Config cleanup; added missing comments.

parent e5b94908
No related merge requests found
...@@ -44,8 +44,18 @@ class AjaxController extends AbstractBase ...@@ -44,8 +44,18 @@ class AjaxController extends AbstractBase
const STATUS_ERROR = 'ERROR'; // bad const STATUS_ERROR = 'ERROR'; // bad
const STATUS_NEED_AUTH = 'NEED_AUTH'; // must login first const STATUS_NEED_AUTH = 'NEED_AUTH'; // must login first
/**
* Type of output to use
*
* @var string
*/
protected $outputMode; protected $outputMode;
protected $account;
/**
* Array of PHP errors captured during execution
*
* @var array
*/
protected static $php_errors = array(); protected static $php_errors = array();
/** /**
...@@ -975,7 +985,7 @@ class AjaxController extends AbstractBase ...@@ -975,7 +985,7 @@ class AjaxController extends AbstractBase
$this->writeSession(); // avoid session write timing bug $this->writeSession(); // avoid session write timing bug
// Force login if necessary: // Force login if necessary:
$config = \VuFind\Config\Reader::getConfig(); $config = $this->getConfig();
if ((!isset($config->Mail->require_login) || $config->Mail->require_login) if ((!isset($config->Mail->require_login) || $config->Mail->require_login)
&& !$this->getUser() && !$this->getUser()
) { ) {
...@@ -1016,7 +1026,7 @@ class AjaxController extends AbstractBase ...@@ -1016,7 +1026,7 @@ class AjaxController extends AbstractBase
$this->writeSession(); // avoid session write timing bug $this->writeSession(); // avoid session write timing bug
// Force login if necessary: // Force login if necessary:
$config = \VuFind\Config\Reader::getConfig(); $config = $this->getConfig();
if ((!isset($config->Mail->require_login) || $config->Mail->require_login) if ((!isset($config->Mail->require_login) || $config->Mail->require_login)
&& !$this->getUser() && !$this->getUser()
) { ) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment