Index: trunk/extensions/WikiLove/WikiLove.hooks.php |
— | — | @@ -175,6 +175,9 @@ |
176 | 176 | |
177 | 177 | // If we're on a subpage, get the base page title |
178 | 178 | $baseTitle = Title::newFromText( $title->getBaseText(), $ns ); |
| 179 | + if ( $baseTitle === null ) { |
| 180 | + return null; |
| 181 | + } |
179 | 182 | |
180 | 183 | // Get the user talk page |
181 | 184 | if ( $ns == NS_USER_TALK ) { |