Index: trunk/extensions/Quiz/Quiz.class.php |
— | — | @@ -132,7 +132,8 @@ |
133 | 133 | $head .= "</style>\n"; |
134 | 134 | global $wgJsMimeType, $wgScriptPath, $wgOut; |
135 | 135 | # Determine the extension folder |
136 | | - $folder = array_pop( explode( '/', dirname( __FILE__ ) ) ); |
| 136 | + $folderList = explode( '/', dirname( __FILE__ ) ); |
| 137 | + $folder = array_pop( $folderList ); |
137 | 138 | $folder = ( $folder == 'extensions' ) ? '' : "/$folder"; |
138 | 139 | $head .= "<script type=\"$wgJsMimeType\" src=\"$wgScriptPath/extensions$folder/quiz.js\"></script>\n"; |
139 | 140 | $wgOut->addScript( $head ); |