Adding helpful comment :)
authorRyan Kaldari <kaldari@users.mediawiki.org>
Fri, 20 Aug 2010 01:47:52 +0000 (01:47 +0000)
committerRyan Kaldari <kaldari@users.mediawiki.org>
Fri, 20 Aug 2010 01:47:52 +0000 (01:47 +0000)
includes/OutputPage.php

index 2ac82fc..343a352 100644 (file)
@@ -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 {