[02:01:56] Hello? [08:38:04] Hi [08:38:30] simple question: is there an admin section of a media wiki where I can control users? I've been asked to delete a user on the company wiki, but can't find a control panel [09:01:10] Kitty: it's not possible to delete users with stock MediaWiki [09:02:33] oh [09:02:35] disable ? [09:05:20] you can block the account from making any actions [16:01:41] Kitty: The control panel for MediaWiki is either editing the PHP file LocalSettings.php on your server or visiting the wiki page "Special:SpecialPages" on your wiki in a browser while logged in a wiki administrator. [16:01:53] !deluser [16:01:54] Deleting users is very messy and not recommended, because this breaks referential integrity in the database (they appear in many different tables like users, edit histories, recentchanges, preferences, etc). A safe solution is to block the users, and possibly rename them with . You can also try [16:09:16] Esther: ok, thank you [16:09:21] shall try that when I'm at work tomorrow [16:30:17] anybody got an example of the best way to replace Skin::link() ? [16:30:27] keep getting bit by these 1.21 deprecation removals [16:31:31] the docs just say to use LinkRenderer instead but I looked at that and it doesn't give an example of usage from inside a skin. [16:36:41] QuasAtWork: $linkRenderer = $this->getLinkRenderer(); $linkRendered->link( … ) [16:36:53] cool, thanks. [16:37:03] (that was meant to be $linkRenderer in both places) [16:37:16] right. [16:38:45] $this is meant to be a Skin object here, if you can't access it easily, you can use MediaWikiServices::getInstance() instead [17:16:34] hmm [17:16:40] for some reason this check is failing sometimes: [17:16:40] if(method_exists($skin, "getLinkRenderer")) { [17:32:45] doesn't seem to be documented as existing either [17:35:31] well this sucks. [17:37:05] what version of mw are you working with? [17:37:16] 1.29 but attempting to preserve compat back to 1.24 [17:37:41] most of this new LinkRenderer stuff doesn't exist until 1.28 so I'm now having a major problem not breaking earlier versions. [17:40:43] you can maybe do a version_compare() on the mediawiki version instead of relying on method_exists? [17:42:03] it's not as nice, but if the method_exists is failing spuriously, it doesn't sound all that reliable [17:43:21] QuasAtWork: if your question was "what to do on earlier versions that don't have LinkRenderer" then you'd probably want to use Linker::link() [17:43:50] right but I'm not sure how to even check that they don't have it at this point [17:44:00] since it requires a use statement to import MediaWikiServices [17:44:51] ? [17:45:13] you can use a non-existent namespace iirc [17:45:20] ah didn't know that. [17:46:10] not 100% sure, I'll test [17:48:05] yeah, just tested and it seems to work for me (on PHP 7, granted) [17:49:11] also confirmed on 5.6 that it works [17:49:33] you can just put arbitrary stuff in use statements, even if they don't exist. I don't think that binding is resolved until you actually try to make use of it [17:55:12] yay, fixed. [17:55:23] thanks. [17:56:54] fwiw, the use statement isn't required in any event, you can always specify the fully qualified name, i.e. MediaWiki\MediaWikiServices::getInstance() [18:02:21] ah. [18:02:47] for all the work I've done with mediawiki related code, I'm still nowhere near fluent with general php :> [18:05:29] QuasAtWork: is there a reason you're trying to be back-compat with 1.24? [18:06:04] because I'm still in the process of upgrading my own wiki that's currently stuck on that version :> [18:06:41] I've just got another guy trying to upgrade his own wiki to 1.29 right now and my skin broke for him [18:14:54] ah [18:15:41] I'd probably just use Linker::link() for now and once you're 1.27+ try using it [19:04:51] Anyone here good with JavaScript? I have something I'm trying to design in Wikia (MediaWiki 1.9 modded) and some Javascript listener is preventing link clicks. [19:08:34] nvm [19:17:02] :-) [19:43:22] (surely he meant 1.19) [19:45:39] wikia runs 1.19. (that is really old) :) [19:46:05] yup [19:46:17] albeit with about 1000 custom extensions [19:46:29] granted 900 of those are for putting more ads on the page :P [19:46:48] anyway gotta run. [19:53:32] Wikia isn't even mediawiki anymore with all the custom stuff they have [21:30:40] c: they took mediawiki and practically just rewrote it in extentsions [21:33:41] i am aware, i started on wikia before you knew what wikia even was [21:33:56] wikicities, probably