diff --git a/lib/externallib.php b/lib/externallib.php index 8cff238f16e..571ea0ff745 100644 --- a/lib/externallib.php +++ b/lib/externallib.php @@ -984,7 +984,7 @@ class external_settings { * Constructor - protected - can not be instanciated */ protected function __construct() { - if (!defined('AJAX_SCRIPT') && !defined('CLI_SCRIPT') && !defined('WS_SERVER')) { + if ((AJAX_SCRIPT == false) && (CLI_SCRIPT == false) && (WS_SERVER == false)) { // For normal pages, the default should match the default for format_text. $this->filter = true; }