[05:23:50] [telegram] Good Newsโœ” Best Platform To Invest Your Money๐Ÿ’ฐ [05:23:51] [telegram] โœ” Instant Payment And Withdraw ๐Ÿ’ฏ [05:23:52] [telegram] ๐Ÿ’Ž Access To Monitor Your Trade [05:23:54] [telegram] โœ”No upfront, No hidden fees [05:23:55] [telegram] โœ” Minimum investment $200 [05:23:57] [telegram] Inbox to get more knowledge on how to trade in Binary [05:23:58] [telegram] ๐Ÿ‘‡๐Ÿ‘‡ [05:24:00] [telegram] @Jameswilliamfx1 [05:24:01] [telegram] ๐Ÿ‘‡๐Ÿ‘‡ [05:24:03] [telegram] https://t.me/joinchat/RDv4HP7Uvu8zZTI0 [10:39:26] [telegram] I have a small code snippet in LocalSettings.php. How can I make it not run in a certain namespace (Special namespace in my case) [10:42:13] [telegram] probably use the https://www.mediawiki.org/wiki/Manual:Hooks/BeforeInitialize hook and check the namespace there [10:42:28] [telegram] (plus maybe https://www.mediawiki.org/wiki/Manual:Hooks/ApiBeforeMain if you need API requests too?) [10:44:29] [telegram] thanks! This is already inside a BeforePageDisplay hook. what i'm struggling to find is how to actually check the namespace ๐Ÿ˜… [10:45:20] [telegram] if ( $title->inNamespace( NS_SPECIAL ) ) { [10:45:21] [telegram] return; [10:45:22] [telegram] } [10:45:24] [telegram] // .... [10:45:42] [telegram] ๐Ÿ™ thank you very much [10:58:56] [telegram] oh wait, $title->isSpecialPage() also exists ^^ [10:59:14] [telegram] ah, even cleaner. nice [10:59:41] [telegram] when i tried the first, however, i got an internal error with the error "Call to a member function inNamespace() on null" [11:01:49] [telegram] Probably havenโ€™t got the right hook subscriber parameterโ€ฆ [11:02:11] [telegram] Or a title object from somewhere [18:17:20] Might need to do `$title && $title->isSpecialPage()`, there are some contexts where a global title won't be set