isPathInfoBad() ) { wfHttpError( 403, 'Forbidden', 'Invalid file extension found in PATH_INFO. ' . 'The resource loader must be accessed through the primary script entry point.' ); return; // FIXME: Doesn't this execute the rest of the request anyway? // Was taken from api.php so I guess it's maybe OK but it doesn't look good. } // Respond to resource loading request ResourceLoader::respond( new ResourceLoaderContext( $wgRequest ) ); wfProfileOut( 'load.php' ); wfLogProfilingData(); // Shut down the database wfGetLBFactory()->shutdown();