Use inNamespace in CategoryPage
Change-Id: I55dae5163d62c25536fb040764cab99cd4deb9b7
This commit is contained in:
parent
e278901968
commit
3c95510deb
1 changed files with 2 additions and 2 deletions
|
|
@ -71,13 +71,13 @@ class CategoryPage extends Article {
|
|||
}
|
||||
|
||||
$title = $this->getTitle();
|
||||
if ( NS_CATEGORY == $title->getNamespace() ) {
|
||||
if ( $title->inNamespace( NS_CATEGORY ) ) {
|
||||
$this->openShowCategory();
|
||||
}
|
||||
|
||||
parent::view();
|
||||
|
||||
if ( NS_CATEGORY == $title->getNamespace() ) {
|
||||
if ( $title->inNamespace( NS_CATEGORY ) ) {
|
||||
$this->closeShowCategory();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue