$this->errors[] = self::formatExceptionNoComment( $e );
}
-
return $result;
}
public function __construct( Config $config = null ) {
global $IP;
-
if ( $config === null ) {
wfDebug( __METHOD__ . ' was called without providing a Config instance' );
$config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' );
. 'Edit your <code>LocalSettings.php</code> to enable it.' );
}
-
// Get core test suites
$testModules = array();
$testModules['qunit'] = array();
// See http://bugs.php.net/bug.php?id=36514
ob_start();
-
// Find out which modules are missing and instantiate the others
$modules = array();
$missing = array();
$this->errors[] = self::formatExceptionNoComment( $e );
}
- wfProfileIn( __METHOD__ . '-getModifiedTime' );
-
// To send Last-Modified and support If-Modified-Since, we need to detect
// the last modified time
$mtime = wfTimestamp( TS_UNIX, $this->config->get( 'CacheEpoch' ) );
}
}
- wfProfileOut( __METHOD__ . '-getModifiedTime' );
-
// If there's an If-Modified-Since header, respond with a 304 appropriately
if ( $this->tryRespondLastModified( $context, $mtime ) ) {
return; // output handled (buffers cleared)
no modules were requested. Max made me put this here. */";
}
-
$image = $context->getImageObj();
if ( $image ) {
$data = $image->getImageData( $context );
* @var $module ResourceLoaderModule
*/
- wfProfileIn( __METHOD__ . '-' . $name );
try {
$scripts = '';
if ( $context->shouldIncludeScripts() ) {
unset( $modules[$name] );
}
$isRaw |= $module->isRaw();
- wfProfileOut( __METHOD__ . '-' . $name );
}
// Update module states