Index: trunk/extensions/SemanticWatchlist/includes/SWL_Group.php |
— | — | @@ -167,8 +167,11 @@ |
168 | 168 | return false; |
169 | 169 | } |
170 | 170 | |
| 171 | + global $wgContLang; |
| 172 | + $catPrefix = $wgContLang->getNSText( NS_CATEGORY ) . ':'; |
| 173 | + |
171 | 174 | foreach ( $this->categories as $groupCategory ) { |
172 | | - $foundMatch = in_array( $groupCategory, $cats ); |
| 175 | + $foundMatch = in_array( $catPrefix . $groupCategory, $cats ); |
173 | 176 | |
174 | 177 | if ( $foundMatch ) { |
175 | 178 | break; |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.hooks.php |
— | — | @@ -28,7 +28,6 @@ |
29 | 29 | $title = Title::makeTitle( $changes->getSubject()->getNamespace(), $changes->getSubject()->getDBkey() ); |
30 | 30 | |
31 | 31 | foreach ( SWLGroups::getMatchingWatchGroups( $title ) as /* SWLGroup */ $group ) { |
32 | | - var_dump($group);exit; |
33 | 32 | $group->notifyWatchingUsers( $changes ); |
34 | 33 | } |
35 | 34 | |
— | — | @@ -57,7 +56,8 @@ |
58 | 57 | } |
59 | 58 | |
60 | 59 | protected static function notifyUser( SWLGroup $group, User $user, SMWChangeSet $changes ) { |
61 | | - var_dump($group);var_dump($user);var_dump($changes);exit; |
| 60 | + // TODO |
| 61 | + //var_dump($group);var_dump($user);var_dump($changes);exit; |
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |