Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -648,7 +648,7 @@ |
649 | 649 | */ |
650 | 650 | public static function pageQuality( $input, $args, $parser ) { |
651 | 651 | list( $page_namespace, $index_namespace ) = self::getPageAndIndexNamespace(); |
652 | | - if ( !preg_match( "/^$page_namespace:(.*?)(\/([0-9]*)|)$/", $parser->Title()->getPrefixedText() ) ) { |
| 652 | + if ( !preg_match( "/^$page_namespace:(.*?)(\/([0-9]*)|)$/", $parser->getTitle()->getPrefixedText() ) ) { |
653 | 653 | return ''; |
654 | 654 | } |
655 | 655 | |
— | — | @@ -669,7 +669,7 @@ |
670 | 670 | */ |
671 | 671 | public static function renderPageList( $input, $args, $parser ) { |
672 | 672 | list( $page_namespace, $index_namespace ) = self::getPageAndIndexNamespace(); |
673 | | - if ( !preg_match( "/^$index_namespace:(.*?)(\/([0-9]*)|)$/", $parser->Title()->getPrefixedText(), $m ) ) { |
| 673 | + if ( !preg_match( "/^$index_namespace:(.*?)(\/([0-9]*)|)$/", $parser->getTitle()->getPrefixedText(), $m ) ) { |
674 | 674 | return ''; |
675 | 675 | } |
676 | 676 | |
— | — | @@ -729,6 +729,10 @@ |
730 | 730 | /** |
731 | 731 | * Parser hook that includes a list of pages. |
732 | 732 | * parameters : index, from, to, header |
| 733 | + * @param $input |
| 734 | + * @param $args |
| 735 | + * @param $parser Parser |
| 736 | + * @return string |
733 | 737 | */ |
734 | 738 | public static function renderPages( $input, $args, $parser ) { |
735 | 739 | list( $page_namespace, $index_namespace ) = self::getPageAndIndexNamespace(); |
— | — | @@ -744,11 +748,11 @@ |
745 | 749 | $fromsection = array_key_exists( 'fromsection', $args ) ? $args['fromsection'] : null; |
746 | 750 | |
747 | 751 | // abort if the tag is on an index page |
748 | | - if ( preg_match( "/^$index_namespace:(.*?)(\/([0-9]*)|)$/", $parser->Title()->getPrefixedText() ) ) { |
| 752 | + if ( preg_match( "/^$index_namespace:(.*?)(\/([0-9]*)|)$/", $parser->getTitle()->getPrefixedText() ) ) { |
749 | 753 | return ''; |
750 | 754 | } |
751 | 755 | // abort too if the tag is in the page namespace |
752 | | - if ( preg_match( "/^$page_namespace:(.*?)(\/([0-9]*)|)$/", $parser->Title()->getPrefixedText() ) ) { |
| 756 | + if ( preg_match( "/^$page_namespace:(.*?)(\/([0-9]*)|)$/", $parser->getTitle()->getPrefixedText() ) ) { |
753 | 757 | return ''; |
754 | 758 | } |
755 | 759 | if( !$index ) { |
— | — | @@ -962,7 +966,7 @@ |
963 | 967 | $h_out .= "|value=$header"; |
964 | 968 | // find next and previous pages in list |
965 | 969 | for( $i = 1; $i < count( $text_links[1] ); $i++ ) { |
966 | | - if( $text_links[1][$i] == $parser->Title()->getPrefixedText() ) { |
| 970 | + if( $text_links[1][$i] == $parser->getTitle()->getPrefixedText() ) { |
967 | 971 | $current = $text_links[0][$i]; |
968 | 972 | break; |
969 | 973 | } |