Index: trunk/phase3/includes/interwiki/Interwiki.php |
— | — | @@ -315,13 +315,13 @@ |
316 | 316 | * |
317 | 317 | * @param $title String: what text to put for the article name |
318 | 318 | * @return String: the URL |
319 | | - * @note Prior to 1.19 getURL did not urlencode the $title, if you use this |
320 | | - * arg in an extension that supports MW earlier than 1.19 please ensure |
321 | | - * you wfUrlencode it when installed in earlier versions of MW. |
| 319 | + * @note Prior to 1.19 The getURL with an argument was broken. |
| 320 | + * If you if you use this arg in an extension that supports MW earlier |
| 321 | + * than 1.19 please wfUrlencode and substitute $1 on your own. |
322 | 322 | */ |
323 | 323 | public function getURL( $title = null ) { |
324 | 324 | $url = $this->mURL; |
325 | | - if( $title != null ) { |
| 325 | + if( isset($title) ) { |
326 | 326 | $url = str_replace( "$1", wfUrlencode( $title ), $url ); |
327 | 327 | } |
328 | 328 | return $url; |