Improvements in MediaWiki namespace handling, enhanced rollback
[lhc/web/wiklou.git] / wiki.phtml
index 2ab801a..5141de3 100644 (file)
@@ -3,21 +3,13 @@
 #
 $wgRequestTime = microtime();
 
-session_cache_limiter( "private, must-revalidate" );
-session_start();
-session_register( "wsUserID" );
-session_register( "wsUserName" );
-session_register( "wsUserPassword" );
-session_register( "wsUploadFiles" );
-
 unset( $IP );
 ini_set( "allow_url_fopen", 0 ); # For security...
 include_once( "./LocalSettings.php" );
 
-$include_path = ini_get( "include_path" );
 # Windows requires ';' as separator, ':' for Unix
-if( strchr( $include_path, ";" ) ) $sep = ";"; else $sep = ":";
-ini_set( "include_path", $IP . $sep . ini_get( "include_path" ) );
+$sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
+ini_set( "include_path", "$IP$sep$include_path" );
 
 include_once( "Setup.php" );
 
@@ -106,5 +98,6 @@ if ( Namespace::getSpecial() == $wgTitle->getNamespace() ) {
 
 $wgOut->output();
 foreach ( $wgDeferredUpdateList as $up ) { $up->doUpdate(); }
-
+logProfilingData();
+wfDebug( "Request ended normally\n" );
 ?>