X-Git-Url: http://git.cyclocoop.org/%28?a=blobdiff_plain;f=includes%2FOutputPage.php;h=564641aa3805d47537f2d05c6c3244e5fd259c91;hb=e3e6be734f8cac8bce7cff7cde86a920b7ca0fb1;hp=fbc7b604390c5432e2a08dfb1c4b73746e6ae0b9;hpb=db9d761d82aae6d64e1e8e6f897c8c58936bffdf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index fbc7b60439..564641aa38 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -304,6 +304,11 @@ class OutputPage extends ContextSource { */ private $mLinkHeader = []; + /** + * @var string The nonce for Content-Security-Policy + */ + private $CSPNonce; + /** * Constructor for OutputPage. This should not be called directly. * Instead a new RequestContext should be created and it will implicitly create @@ -458,24 +463,22 @@ class OutputPage extends ContextSource { } /** - * Add a JavaScript file out of skins/common, or a given relative path. + * Add a JavaScript file to be loaded as `