From: Ryan Kaldari Date: Fri, 20 Aug 2010 01:47:52 +0000 (+0000) Subject: Adding helpful comment :) X-Git-Tag: 1.31.0-rc.0~35438 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=b9b69f594c3bdd770d836e96201c228160f5c7ac;p=lhc%2Fweb%2Fwiklou.git Adding helpful comment :) --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2ac82fc202..343a352c1d 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -195,6 +195,7 @@ class OutputPage { */ public function addScriptFile( $file, $version = null ) { global $wgStylePath, $wgStyleVersion; + // See if $file parameter is an absolute URL or begins with a slash if( substr( $file, 0, 1 ) == '/' || preg_match( '#^[a-z]*://#i', $file ) ) { $path = $file; } else {