r71325 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71324‎ | r71325 | r71326 >
Date:01:47, 20 August 2010
Author:kaldari
Status:ok
Tags:
Comment:
Adding helpful comment :)
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -195,6 +195,7 @@
196196 */
197197 public function addScriptFile( $file, $version = null ) {
198198 global $wgStylePath, $wgStyleVersion;
 199+ // See if $file parameter is an absolute URL or begins with a slash
199200 if( substr( $file, 0, 1 ) == '/' || preg_match( '#^[a-z]*://#i', $file ) ) {
200201 $path = $file;
201202 } else {

Status & tagging log