r23510 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23509‎ | r23510 | r23511 >
Date:16:06, 28 June 2007
Author:robchurch
Status:old
Tags:
Comment:
(bug 10398) Honour .php5 script extensions in pre-installation splash screen
Modified paths:
  • /trunk/phase3/includes/templates/NoLocalSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/templates/NoLocalSettings.php
@@ -7,9 +7,10 @@
88 }
99 # Set the path in case we hit a page such as /index.php/Main_Page
1010 # Could use <base href> but then we have to worry about http[s]/port #/etc.
 11+$ext = strpos( $_SERVER['SCRIPT_NAME'], 'index.php5' ) === false ? 'php' : 'php5';
1112 $path = '';
1213 if( isset( $_SERVER['SCRIPT_NAME'] )) {
13 - $path = htmlspecialchars( preg_replace('/index.php/', '', $_SERVER['SCRIPT_NAME']) );
 14+ $path = htmlspecialchars( preg_replace('/index.php5?/', '', $_SERVER['SCRIPT_NAME']) );
1415 }
1516 ?>
1617 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -39,7 +40,7 @@
4041 if ( file_exists( 'config/LocalSettings.php' ) ) {
4142 echo( 'To complete the installation, move <tt>config/LocalSettings.php</tt> to the parent directory.' );
4243 } else {
43 - echo( "Please <a href=\"${path}config/index.php\" title='setup'> set up the wiki</a> first." );
 44+ echo( "Please <a href=\"${path}config/index.{$ext}\" title='setup'> set up the wiki</a> first." );
4445 }
4546 ?>
4647

Follow-up revisions

RevisionCommit summaryAuthorDate
r23581Merged revisions 23406-23580 via svnmerge from...david04:50, 30 June 2007

Status & tagging log