X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FOutputPage.php;h=e0ca258a9ce18ae18dc7d713a73e15f91df28977;hb=5cbb90cf67db3d59f14e47f67895f68b3dea9df5;hp=4ccb0d427477b17dbd6c4027224360ea43f1189c;hpb=abb59e331ab55b8dc3af34cdb0fbf1547d234215;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 4ccb0d4274..e0ca258a9c 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -459,13 +459,6 @@ class OutputPage extends ContextSource { * @param string|null $unused Previously used to change the cache-busting query parameter */ public function addScriptFile( $file, $unused = null ) { - if ( substr( $file, 0, 1 ) !== '/' && !preg_match( '#^[a-z]*://#i', $file ) ) { - // This is not an absolute path, protocol-relative url, or full scheme url, - // presumed to be an old call intended to include a file from /w/skins/common, - // which doesn't exist anymore as of MediaWiki 1.24 per T71277. Ignore. - wfDeprecated( __METHOD__, '1.24' ); - return; - } $this->addScript( Html::linkedScript( $file, $this->getCSPNonce() ) ); }