CSP: Allow an option of disabling nonces
[lhc/web/wiklou.git] / includes / OutputPage.php
index 3b4b14a..948e1eb 100644 (file)
@@ -4011,7 +4011,7 @@ class OutputPage extends ContextSource {
         * @since 1.32
         */
        public function getCSPNonce() {
-               if ( !ContentSecurityPolicy::isEnabled( $this->getConfig() ) ) {
+               if ( !ContentSecurityPolicy::isNonceRequired( $this->getConfig() ) ) {
                        return false;
                }
                if ( $this->CSPNonce === null ) {