r98882 MediaWiki - Code Review archive

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

Diff [purge]

Index: branches/REL1_18/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 );

Follow-up revisions

RevisionCommit summaryAuthorDate
r98883MFT r98881 - bug 31351brion18:57, 4 October 2011

Past revisions this follows-up on

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

Status & tagging log