Index: branches/wmf/1.17wmf1/languages/messages/MessagesKk_cyrl.php |
— | — | @@ -33,6 +33,8 @@ |
34 | 34 | |
35 | 35 | $fallback8bitEncoding = 'windows-1251'; |
36 | 36 | |
| 37 | +$linkTrail = '/^([a-zäçéğıïñöşüýʺʹа-яёәғіқңөұүһٴابپتجحدرزسشعفقكلمنڭەوۇۋۆىيچھ“»]+)(.*)$/sDu'; |
| 38 | + |
37 | 39 | $namespaceNames = array( |
38 | 40 | NS_MEDIA => 'Таспа', |
39 | 41 | NS_SPECIAL => 'Арнайы', |
Index: branches/wmf/1.17wmf1/includes/HttpFunctions.php |
— | — | @@ -32,7 +32,6 @@ |
33 | 33 | * @return Mixed: (bool)false on failure or a string on success |
34 | 34 | */ |
35 | 35 | public static function request( $method, $url, $options = array() ) { |
36 | | - $url = wfExpandUrl( $url, PROTO_HTTP ); |
37 | 36 | wfDebug( "HTTP: $method: $url\n" ); |
38 | 37 | $options['method'] = strtoupper( $method ); |
39 | 38 | |
— | — | @@ -165,14 +164,14 @@ |
166 | 165 | public $status; |
167 | 166 | |
168 | 167 | /** |
169 | | - * @param $url String: url to use |
| 168 | + * @param $url String: url to use. If protocol-relative, will be expanded to an http:// URL |
170 | 169 | * @param $options Array: (optional) extra params to pass (see Http::request()) |
171 | 170 | */ |
172 | 171 | function __construct( $url, $options = array() ) { |
173 | 172 | global $wgHTTPTimeout; |
174 | 173 | |
175 | | - $this->url = $url; |
176 | | - $this->parsedUrl = parse_url( $url ); |
| 174 | + $this->url = wfExpandUrl( $url, PROTO_HTTP ); |
| 175 | + $this->parsedUrl = parse_url( $this->url ); |
177 | 176 | |
178 | 177 | if ( !Http::isValidURI( $this->url ) ) { |
179 | 178 | $this->status = Status::newFatal( 'http-invalid-url' ); |