Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2513
phase3.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:59 PM
2014-11-21 20:59:22 (UTC+0)
Size
981 B
Referenced Files
None
Subscribers
None
phase3.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2089
Default Alt Text
phase3.patch (981 B)
Attached To
Mode
T6258: When installing under IIS, $wgArticlePath = "$wgScript?title=$1" should be set
Attached
Detach File
Event Timeline
Log In to Comment