Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -341,7 +341,7 @@ |
342 | 342 | * enables linkback and autocomplete for search |
343 | 343 | */ |
344 | 344 | function mvfAutoAllPageHeader() { |
345 | | - global $mvgScriptPath, $wgJsMimeType, $wgOut, $mvExtraHeader, $wgTitle, $mvgJSDebug, $wgEnableScriptLoader; |
| 345 | + global $mvgScriptPath, $wgJsMimeType, $wgOut, $mvExtraHeader, $wgTitle, $mvgJSDebug, $wgEnableScriptLoader, $wgRequest;; |
346 | 346 | $mvgScriptPath = htmlspecialchars( $mvgScriptPath ); |
347 | 347 | $wgJsMimeType = htmlspecialchars( $wgJsMimeType ) ; |
348 | 348 | //set the unquie request value |
— | — | @@ -354,7 +354,10 @@ |
355 | 355 | |
356 | 356 | /* (moved to on_dom ready) but here as well*/ |
357 | 357 | if( $wgEnableScriptLoader ){ |
358 | | - $debug_param = ($mvgJSDebug) ? '&debug=true' : ''; |
| 358 | + $debug_param = ( $mvgJSDebug || |
| 359 | + $wgRequest->getVal('debug')=='true' || |
| 360 | + $wgRequest->getVal('debug')=='1' ) |
| 361 | + ? '&debug=true' : ''; |
359 | 362 | $wgOut->addScript( "<script type=\"{$wgJsMimeType}\" src=\"{$mvgScriptPath}/skins/mv_embed/mvwScriptLoader.php?" . |
360 | 363 | "class=window.jQuery,j.fn.autocomplete,j.fn.hoverIntent,mv_embed,mv_allpages,mv_search" . |
361 | 364 | '&urid=' .$unique_req_param . $debug_param . "\"></script>" |