extensions/Echo/Hooks.php
// Provide info for the Overlay if ( $user->isLoggedIn() ) { $vars['wgEchoConfig'] = $wgEchoConfig; } elseif ( $outputPage->getTitle()->equals( SpecialPage::getTitleFor( 'JavaScriptTest', 'qunit' ) ) || // Also if running from /plain or /export $outputPage->getTitle()->isSubpageOf( SpecialPage::getTitleFor( 'JavaScriptTest', 'qunit' ) ) ) { // For testing purposes $vars['wgEchoConfig'] = array( 'eventlogging' => array( 'EchoInteraction' => array(), ), ); }
We should not need to do this on the PHP side.