X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebRequest.php;h=dfa8cf6f932551d1d3d12b991b4f06f99229e285;hb=97041a612ebe4ac76c25c9ca838541f8f89b9cfa;hp=536ce12acf03eeedeef16511efedb495c76abbfc;hpb=29b86059736b251162e3ecad21f2f4a2d1bc0bbc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 536ce12acf..dfa8cf6f93 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -54,7 +54,7 @@ class WebRequest { * Cached URL protocol * @var string */ - private $protocol; + protected $protocol; public function __construct() { /// @todo FIXME: This preemptive de-quoting can interfere with other web libraries @@ -113,8 +113,8 @@ class WebRequest { $router->add( "$wgScript/$1" ); if ( isset( $_SERVER['SCRIPT_NAME'] ) - && preg_match( '/\.php5?/', $_SERVER['SCRIPT_NAME'] ) ) - { + && preg_match( '/\.php5?/', $_SERVER['SCRIPT_NAME'] ) + ) { # Check for SCRIPT_NAME, we handle index.php explicitly # But we do have some other .php files such as img_auth.php # Don't let root article paths clober the parsing for them