Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -18,11 +18,6 @@ |
19 | 19 | protected $mCategoryViewerClass = 'CategoryViewer'; |
20 | 20 | |
21 | 21 | /** |
22 | | - * @var Title |
23 | | - */ |
24 | | - protected $mTitle; |
25 | | - |
26 | | - /** |
27 | 22 | * @param $title Title |
28 | 23 | * @return WikiCategoryPage |
29 | 24 | */ |
— | — | @@ -49,20 +44,22 @@ |
50 | 45 | $this->getContext()->getUser()->getOption( 'diffonly' ) ); |
51 | 46 | |
52 | 47 | if ( isset( $diff ) && $diffOnly ) { |
53 | | - return parent::view(); |
| 48 | + parent::view(); |
| 49 | + return; |
54 | 50 | } |
55 | 51 | |
56 | 52 | if ( !wfRunHooks( 'CategoryPageView', array( &$this ) ) ) { |
57 | 53 | return; |
58 | 54 | } |
59 | 55 | |
60 | | - if ( NS_CATEGORY == $this->mTitle->getNamespace() ) { |
| 56 | + $title = $this->getTitle(); |
| 57 | + if ( NS_CATEGORY == $title->getNamespace() ) { |
61 | 58 | $this->openShowCategory(); |
62 | 59 | } |
63 | 60 | |
64 | 61 | parent::view(); |
65 | 62 | |
66 | | - if ( NS_CATEGORY == $this->mTitle->getNamespace() ) { |
| 63 | + if ( NS_CATEGORY == $title->getNamespace() ) { |
67 | 64 | $this->closeShowCategory(); |
68 | 65 | } |
69 | 66 | } |