Page MenuHomePhabricator

phase3.patch

Authored By
bzimport
Nov 21 2014, 8:59 PM
Size
981 B
Referenced Files
None
Subscribers
None

phase3.patch

Index: config/index.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/config/index.php,v
retrieving revision 1.142
diff -u -r1.142 index.php
--- config/index.php 4 Dec 2005 14:49:26 -0000 1.142
+++ config/index.php 13 Dec 2005 15:35:22 -0000
@@ -255,19 +255,20 @@
$sapi = php_sapi_name();
$conf->prettyURLs = true;
print "<li>PHP server API is $sapi; ";
-switch( $sapi ) {
+switch( strtolower( $sapi ) ) {
case "apache":
case "apache2handler":
print "ok, using pretty URLs (<tt>index.php/Page_Title</tt>)";
break;
+default:
+ print "unknown; ";
case "cgi":
case "cgi-fcgi":
case "apache2filter":
+case "isapi":
print "using ugly URLs (<tt>index.php?title=Page_Title</tt>)";
$conf->prettyURLs = false;
break;
-default:
- print "unknown; using pretty URLs (<tt>index.php/Page_Title</tt>), if you have trouble change this in <tt>LocalSettings.php</tt>";
}
print "</li>\n";

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2089
Default Alt Text
phase3.patch (981 B)

Event Timeline