http://www.mediawiki.org/wiki/Special:Code/MediaWiki/72208

Revision: 72208
Author:   tparscal
Date:     2010-09-02 18:38:57 +0000 (Thu, 02 Sep 2010)

Log Message:
-----------
Added existance check to mediawiki.loader.go() call to prevent JS errors on 
client which do not end up loading the jquery and mediawiki modules.

Modified Paths:
--------------
    branches/resourceloader/phase3/includes/OutputPage.php

Modified: branches/resourceloader/phase3/includes/OutputPage.php
===================================================================
--- branches/resourceloader/phase3/includes/OutputPage.php      2010-09-02 
18:05:58 UTC (rev 72207)
+++ branches/resourceloader/phase3/includes/OutputPage.php      2010-09-02 
18:38:57 UTC (rev 72208)
@@ -2367,7 +2367,7 @@
                }
                $scripts .= "\n" . $this->mScripts;
                // This should be at the bottom of the body - below ALL other 
scripts
-               $scripts .= Html::inlineScript( 'mediaWiki.loader.go();' );
+               $scripts .= Html::inlineScript( "if ( typeof 
mediaWiki.loader.go === 'function' ) { mediaWiki.loader.go(); }" );
                return $scripts;
        }
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to