r98883 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98882‎ | r98883 | r98884 >
Date:18:57, 4 October 2011
Author:brion
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/Quiz/Quiz.class.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/Quiz/Quiz.class.php
@@ -132,7 +132,8 @@
133133 $head .= "</style>\n";
134134 global $wgJsMimeType, $wgScriptPath, $wgOut;
135135 # Determine the extension folder
136 - $folder = array_pop( explode( '/', dirname( __FILE__ ) ) );
 136+ $folderList = explode( '/', dirname( __FILE__ ) );
 137+ $folder = array_pop( $folderList );
137138 $folder = ( $folder == 'extensions' ) ? '' : "/$folder";
138139 $head .= "<script type=\"$wgJsMimeType\" src=\"$wgScriptPath/extensions$folder/quiz.js\"></script>\n";
139140 $wgOut->addScript( $head );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98881* (bug 31351) fix Quiz extension strict warning...brion18:53, 4 October 2011
r98882MFT r98881 - bug 31351brion18:54, 4 October 2011

Status & tagging log