Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -530,6 +530,11 @@ |
531 | 531 | * |
532 | 532 | * <noinclude>, <includeonly> etc. are parsed as for template transclusion, |
533 | 533 | * comments, templates, arguments, tags hooks and parser functions are untouched. |
| 534 | + * |
| 535 | + * @param $text String |
| 536 | + * @param $title Title |
| 537 | + * @param $options ParserOptions |
| 538 | + * @return String |
534 | 539 | */ |
535 | 540 | public function getPreloadText( $text, Title $title, ParserOptions $options ) { |
536 | 541 | # Parser (re)initialisation |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -784,6 +784,8 @@ |
785 | 785 | |
786 | 786 | /** |
787 | 787 | * Display an error with a wikitext description |
| 788 | + * |
| 789 | + * @param $description String |
788 | 790 | */ |
789 | 791 | function showError( $description ) { |
790 | 792 | global $wgOut; |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -1311,8 +1311,9 @@ |
1312 | 1312 | * |
1313 | 1313 | * @param $text String |
1314 | 1314 | * @param $linestart Boolean: is this the start of a line? |
| 1315 | + * @param $interface Boolean: is this text in the user interface language? |
1315 | 1316 | */ |
1316 | | - public function addWikiText( $text, $linestart = true, $interface = false ) { |
| 1317 | + public function addWikiText( $text, $linestart = true, $interface = true ) { |
1317 | 1318 | $title = $this->getTitle(); // Work arround E_STRICT |
1318 | 1319 | $this->addWikiTextTitle( $text, $title, $linestart, /*tidy*/false, $interface ); |
1319 | 1320 | } |
— | — | @@ -1941,8 +1942,7 @@ |
1942 | 1943 | $this->enableClientCache( false ); |
1943 | 1944 | $this->mRedirect = ''; |
1944 | 1945 | $this->mBodytext = ''; |
1945 | | - $this->addWikiText( $this->formatPermissionsErrorMessage( $errors, $action ), |
1946 | | - /*linestart*/true, /*interface*/true ); |
| 1946 | + $this->addWikiText( $this->formatPermissionsErrorMessage( $errors, $action ) ); |
1947 | 1947 | } |
1948 | 1948 | |
1949 | 1949 | /** |
— | — | @@ -2081,8 +2081,7 @@ |
2082 | 2082 | } else { |
2083 | 2083 | $this->setPageTitle( wfMsg( 'badaccess' ) ); |
2084 | 2084 | } |
2085 | | - $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ), |
2086 | | - /*linestart*/true, /*interface*/true ); |
| 2085 | + $this->addWikiText( $this->formatPermissionsErrorMessage( $reasons, $action ) ); |
2087 | 2086 | } else { |
2088 | 2087 | // Wiki is read only |
2089 | 2088 | throw new ReadOnlyError; |
— | — | @@ -2958,9 +2957,9 @@ |
2959 | 2958 | /** |
2960 | 2959 | * Adds inline CSS styles |
2961 | 2960 | * @param $style_css Mixed: inline CSS |
2962 | | - * @param $flip False or String: Set to 'flip' to flip the CSS if needed |
| 2961 | + * @param $flip String: Set to 'flip' to flip the CSS if needed |
2963 | 2962 | */ |
2964 | | - public function addInlineStyle( $style_css, $flip = false ) { |
| 2963 | + public function addInlineStyle( $style_css, $flip = 'noflip' ) { |
2965 | 2964 | if( $flip === 'flip' && $this->getLang()->isRTL() ) { |
2966 | 2965 | # If wanted, and the interface is right-to-left, flip the CSS |
2967 | 2966 | $style_css = CSSJanus::transform( $style_css, true, false ); |
— | — | @@ -3049,6 +3048,9 @@ |
3050 | 3049 | return $ret; |
3051 | 3050 | } |
3052 | 3051 | |
| 3052 | + /** |
| 3053 | + * @return Array |
| 3054 | + */ |
3053 | 3055 | public function buildCssLinksArray() { |
3054 | 3056 | $links = array(); |
3055 | 3057 | |
— | — | @@ -3223,7 +3225,7 @@ |
3224 | 3226 | } |
3225 | 3227 | $s = str_replace( '$' . ( $n + 1 ), wfMsgExt( $name, $options, $args ), $s ); |
3226 | 3228 | } |
3227 | | - $this->addWikiText( $s, /*linestart*/true, /*interface*/true ); |
| 3229 | + $this->addWikiText( $s ); |
3228 | 3230 | } |
3229 | 3231 | |
3230 | 3232 | /** |
Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -64,7 +64,7 @@ |
65 | 65 | $text .= $this->getWgHooks(); |
66 | 66 | } |
67 | 67 | |
68 | | - $out->addWikiText( $text, /*linestart*/true, /*interface*/true ); |
| 68 | + $out->addWikiText( $text ); |
69 | 69 | $out->addHTML( $this->IPInfo() ); |
70 | 70 | |
71 | 71 | if ( $this->getRequest()->getVal( 'easteregg' ) ) { |
— | — | @@ -154,6 +154,7 @@ |
155 | 155 | /** |
156 | 156 | * Return a string of the MediaWiki version with SVN revision if available. |
157 | 157 | * |
| 158 | + * @param $flags String |
158 | 159 | * @return mixed |
159 | 160 | */ |
160 | 161 | public static function getVersion( $flags = '' ) { |