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