From b9b69f594c3bdd770d836e96201c228160f5c7ac Mon Sep 17 00:00:00 2001 From: Ryan Kaldari Date: Fri, 20 Aug 2010 01:47:52 +0000 Subject: [PATCH] Adding helpful comment :) --- includes/OutputPage.php | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.20.1