public static function onSetup()
 {
     // This prevents VisualEditor from being run in environments that don't
     // have the dependent code in core; this should be updated as a part of
     // when additional dependencies are created and pushed into MediaWiki's
     // core. The most direct effect of this is to avoid confusing any third
     // parties who attempt to install VisualEditor onto non-alpha wikis, as
     // this should have no impact on deploying to Wikimedia's wiki cluster;
     // is fine for release tarballs because 1.22wmf11 < 1.22alpha < 1.22.0.
     wfUseMW('1.25wmf24');
 }
 function Setup()
 {
     global $wgExtensionCredits, $w2lConfig, $wgUser;
     // A current MW-Version is required so check for it...
     wfUseMW($this->required_mw);
     // Check if messages are loaded. If not do so.
     if ($this->messagesLoaded == false) {
         wfLoadExtensionMessages('wiki2latex');
         $this->messagesLoaded = true;
     }
     $wgExtensionCredits['other'][] = array('name' => wfMsg('wiki2latex'), 'author' => 'Hans-Georg Kluge and [http://code.google.com/p/wiki2latex/wiki/HallOfFame many contributors]', 'description' => wfMsg('w2l_description'), 'url' => 'http://www.mediawiki.org/wiki/Extension:Wiki2LaTeX', 'version' => $this->version);
     if ($wgUser->getOption('w2lDebug') == true) {
         error_reporting(E_ALL);
     }
     return true;
 }