mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Fix issue processwire/processwire-issues#1980
This commit is contained in:
@@ -91,7 +91,7 @@ class Installer {
|
||||
public function execute() {
|
||||
|
||||
if(self::TEST_MODE) {
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
}
|
||||
|
||||
@@ -2065,6 +2065,6 @@ class Installer {
|
||||
/****************************************************************************************************/
|
||||
|
||||
if(!Installer::TEST_MODE && is_file("./site/assets/installed.php")) die("This installer has already run. Please delete it.");
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
error_reporting(E_ALL);
|
||||
$installer = new Installer();
|
||||
$installer->execute();
|
@@ -288,7 +288,7 @@ class ProcessWire extends Wire {
|
||||
|
||||
// this is reset in the $this->setConfig() method based on current debug mode
|
||||
ini_set('display_errors', true);
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$config->setWire($this);
|
||||
|
||||
@@ -449,7 +449,7 @@ class ProcessWire extends Wire {
|
||||
|
||||
if($debug) {
|
||||
// If debug mode is on then echo all errors
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
} else {
|
||||
// disable all error reporting
|
||||
|
@@ -158,7 +158,7 @@ class WireShutdown extends Wire {
|
||||
E_USER_ERROR => $this->_('Error'),
|
||||
E_USER_WARNING => $this->_('User Warning'),
|
||||
E_USER_NOTICE => $this->_('User Notice'),
|
||||
E_STRICT => $this->_('Strict Warning'),
|
||||
2048 => $this->_('Strict Warning'), // 2048=E_STRICT (deprecated in PHP 8.4)
|
||||
E_RECOVERABLE_ERROR => $this->_('Recoverable Fatal Error')
|
||||
);
|
||||
|
||||
|
@@ -155,7 +155,7 @@ class ProcessProfile extends Process implements ConfigurableModule, WirePageEdit
|
||||
$field = $user->fields->getFieldContext($field);
|
||||
$inputfield = $field->getInputfield($user);
|
||||
if(!$inputfield) continue;
|
||||
$inputfield->value = $user->get($field->name);
|
||||
$inputfield->val($user->get($field->name));
|
||||
|
||||
if($field->name === 'admin_theme') {
|
||||
if(!$inputfield->value) $inputfield->value = $config->defaultAdminTheme;
|
||||
|
Reference in New Issue
Block a user