r42185 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42184‎ | r42185 | r42186 >
Date:23:55, 17 October 2008
Author:dale
Status:old
Tags:
Comment:
allows for wgServerOverride
Modified paths:
  • /trunk/extensions/PlayerStatsGrabber/playerStats.js (modified) (history)

Diff [purge]

Index: trunk/extensions/PlayerStatsGrabber/playerStats.js
@@ -1,6 +1,5 @@
22 //wgServerOveride: leave empty to use the current server
33 // (else provide the absolute url to index.php of the wiki you are recording stats to)
4 -var wgServerOveride = "";
54 var global_req_cb = new Array();//the global request callback array
65
76 /*parseUri class:*/
@@ -21,8 +20,8 @@
2221 }
2322
2423 //build our request url:
25 - if( wgServerOveride!="" ){
26 - url= wgServerOveride;
 24+ if( wgServerOverride!="" ){
 25+ url= wgServerOverride;
2726 }else{
2827 url = wgServer +((wgScript == null) ? (wgScriptPath + "/index.php") : wgScript);
2928 }
@@ -71,6 +70,7 @@
7271 });
7372 }
7473 }
 74+
7575 //extend the OggHandler object for stats collection
7676 if(typeof wgOggPlayer.doStats =='undefined'){
7777 for(var i in wgExtendedOggPlayerStats){

Status & tagging log