[01:02:41] Is there a service to get the content of a page given a page title string, which might or might not include a namespace prefix and might not exist? [01:33:48] Ended up creating https://gist.github.com/JeroenDeDauw/cd18cd68d4239a56d129603a2a220056 [01:42:15] I am pretty sure the API can do that. [01:43:24] Title::newFromText( $pageName, $defaultFallbackNamespace ) [01:43:31] but rarely is that the behavior you want IMO... [01:49:27] Let's make this the new logo. https://upload.wikimedia.org/wikipedia/commons/3/3b/Mediawiki_blob_brackets.svg [01:53:00] Trela: PHP service I meant :) [01:53:08] legoktm: service, not a global function [01:54:09] ah, well you found TitleParser, which is what Title wraps around :) [01:54:47] Yup. Pretty happy that thing exists [01:55:20] I guess if you need that in a lot of places then having that trait is worth it. :O [01:56:15] trait? [01:56:18] * JeroenDeDauw hides [01:56:42] use PageContentFetcherTrait; [01:56:46] * Trela laughs evilly. [02:01:01] public static function fetchPageContent() { return eval( 'Title::newFromText( [02:02:09] I went down the trait path recently. It worked for where I needed it. [03:28:15] Isarra, should have a system that makes git master builds of mediawiki default to that logo. [03:31:06] at work i made it so that if our product detects that it's running in a development environment the web interface changes the loading animation from a throbber to a dancing cat [03:37:38] Lol [04:08:56] i wish that the resourceloader would throw an exception or something instead of just silently ignoring it when you do something wrong [04:29:29] okdana: in what situation? [04:31:08] for example you can't use dependencies with addModuleStyles() [04:31:18] it took me some time to discover that in the documentation [04:31:35] if you try to add a style resource with a dependency via addModuleStyles(), nothing happens [04:31:40] there's no error, you just don't get the style [04:32:35] maybe that's OutputPage's fault rather than the resource loader itself, idk, not that familiar with the internals yet [04:40:11] hmm, that's supposed to log a warning somewhere [05:17:28] Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/ [05:17:28] or maybe this blog by freenode staff member Matthew 'mst' Trout https://MattSTrout.com/ [05:17:29] Read what IRC investigative journalists have uncovered on the freenode pedophilia scandal https://encyclopediadramatica.rs/Freenodegate [05:17:38] oh ffs not again [05:20:40] ... [05:23:02] andre__: after long last, I applied myself to my CSS upgrade problems and it seems like I've finally solved it. And soon we will be updating to latest MediaWiki within the next few months (so I'll have to do it all over again). :) [05:23:47] I'll keep the channel open tho as there will surely be other problems. ;) [07:16:23] Hi, mediawiki is installed in domain.com/w and with htaccess and mediawiki now the links are perfect domain.com/wiki/link [07:17:41] but the wiki is on the root of my domain directly. want to install wordpress and put it in the root and keep the mediawiki stil in w/ and with the same link, is that possible? [07:37:22] yes [07:38:07] you just need to arrange your rewrite rules so that /w/ and /wiki/ go where they're supposed to, and probably let wordpress handle everything else [07:44:04] hi, I'm trying to run MediaWiki with nginx (as in, I can't replace the server) and I was wondering how the rewriting thing would work in that case [07:46:29] as in you don't have access to the nginx config? [07:46:48] no [07:47:07] I'm an admin on the server (it's a community box) [07:47:18] I just can't, say, remove nginx and replace it with Apache [07:48:42] as long as you have access to the config it's pretty simple, something like: location /wiki { try_files $uri $uri/ @mw; } location @mw { rewrite ^/(.*)$ /w/index.php?title=$1&$args; } [07:48:57] and then you need to configure fpm or whatever obv [07:49:26] ok thanks [07:49:31] s/$/!/ [07:53:05] okdana, i did it but canør redirect any more from w/ to domain.com/wiki/LINK [07:53:56] i don't use apache much any more but if you paste your rules somewhere i can look at them, if you want [08:00:02] okdana, that is .htaccess in the root of domain http://dpaste.com/2NHG2T2.txt and this http://dpaste.com/0G6C0V0.txt the LocalSetting.php in w/ dir [08:08:18] i read that you shouldn't do the ?title=$1 thing with apache [08:10:04] think you need $wgUsePathInfo if you don't tho [08:14:19] now more complicated than before, thanks anyway i'll write a thread in wiki forum [11:03:06] Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/ [11:26:45] my phabricator account is deactivated. I request help [11:35:39] ...and it will remain deactivated because of sockpuppetry. [11:49:27] andre__, or any other MW.org admin, please look on https://www.mediawiki.org/wiki/Special:Contributions/119.30.39.47, vandalism in translations. Thanks! [11:58:17] And https://www.mediawiki.org/wiki/Topic:Uhr2tkh0qus3yx4c also deserve deleting, I don't what to do with flow vandalism.. [13:15:44] N3X15: That is an excellent idea. [16:27:58] To MediaWiki.org admins: Can somebody stop https://www.mediawiki.org/wiki/Special:Contributions/85.255.236.224 ? [16:30:41] 2 edits? [16:31:20] done. [16:48:01] thanks andre__, Urbanecm [16:48:57] Well, maybe the world I should have used is "nuke", not "stop" andre__. Thank you as well! [16:49:51] Urbanecm, you could probably apply for sysop on mediawikiwiki btw [16:51:59] technically I think you're pretty much automatically eligible without an application because of https://gerrit.wikimedia.org/r/#/q/owner:%22Urbanecm+%253Cmartin.urbanec%2540wikimedia.cz%253E%22+status:merged+project:mediawiki/core though they're only translation changes [16:52:33] if you're interested, of course :) [16:54:01] yeah, makes sense ^ [16:54:13] Krenair, actually, I'm not familiar with mediawikiwiki administrator policies. With the thing I'm doing (watching cross wiki vandalism, which surprisingly includes mainly mediawikiwiki and metawiki) it'll be helpful, so if I can get it somehow, I'm interested in applying/asking/whatever :) [16:54:59] there isn't a great deal more to administering mediawiki.org than anti-spam/vandalism/etc. tbh [16:55:52] https://www.mediawiki.org/wiki/Project:Requests [16:56:07] Okay, going to fill the form, thanks [16:57:30] if you made a request (mention your cross-wiki vandalism stuff as well as other technical wikimedia contribs) there I'd support and, given a few days wait for others to comment, likely process it [17:01:31] Hi, how to make recent changes as on wmf projects? [17:02:54] Zoranzoki21, how to make recent changes? sorry, not sure I understand the question [17:03:09] you want to make recent changes on your wiki look like the one on wikimedia sites? [17:03:09] How to make recent changes list as on wmf projects? [17:03:30] *list of changes in recent changes [17:06:04] I think on disabling grouping of changes in recent changes for all users per default [17:06:20] On wmf projects changes are not grouped in recent changes [17:07:18] Krenair, FYI, I've filled the request. Thank you! [17:07:32] Urbanecm, I've already given it a {{support}} :) [17:07:43] Zoranzoki21, I think that's the old enhanced recent changes thing? [17:08:17] Ok, didn't notice :D. Thank you again [17:08:30] Krenair: See recentchanges on my wiki: http://e-balkan.tk/wiki/index.php/Posebno:NedavneIzmjene [17:08:40] Krenair: I want to it be for all users as on wmf projects [17:09:03] To list of changes no be grouped [17:09:34] I only need what I have to put in LocalSettings.php [17:09:55] Because I forgot which line I have to add for disabling grouped changes in rc [17:10:43] ok [17:10:58] try $wgDefaultUserOptions['usenewrc'] = 0; [17:12:40] Krenair: Yes, this is what I wanted. Thank you very much! [17:12:49] np [17:16:46] Krenair: Oh, how I can change registration model, so only administrators can open accounts for users? [17:17:05] As on example how is on foundation wiki [17:17:49] try $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['user']['createaccount'] = false; [17:18:34] second one might not be necessary [17:19:35] OK. Works. Thank you again! [17:20:36] How to enable hiding of revisions [17:21:45] Zoranzoki21, https://www.mediawiki.org/wiki/Manual:RevisionDelete [17:22:32] Urbanecm: Thanks [17:22:37] yw [18:08:52] Hey, I thought you guys might be interested in this blog by freenode staff member Bryan 'kloeri' Ostergaard https://bryanostergaard.com/