--- mediawiki-1.14.0/includes/templates/NoLocalSettings.php	2009-02-10 18:50:01.000000000 +0100
+++ mediawiki-1.14.0/includes/templates/NoLocalSettings.php	2009-02-10 18:46:08.000000000 +0100
@@ -12,7 +12,7 @@
 }
 
 $scriptName = $_SERVER['SCRIPT_NAME'];
-$ext = substr( $scriptName, strpos( $scriptName, "." ) + 1 );
+$ext = substr( $scriptName, strrpos( $scriptName, "." ) + 1 );
 $path = '';
 # Add any directories in the main folder that could contain an entrypoint (even possibly).
 # We cannot just do a dir listing here, as we do not know where it is yet
