[04:33:34] Say, where can I find the exact dates, where not only, say, 1.19 way released, but a subrelease such as 1.19.12? [04:51:54] idodeisuke: https://www.mediawiki.org/w/index.php?title=Release_notes%2F1.19&type=revision&diff=916907&oldid=915669 or check the archives of the mediawiki-announce mailing list [04:52:34] legoktm: thx!! [15:30:02] Yaron, ping [15:55:01] saper: How would i do this, deletePermanent() does not need $output at all. Make it return something and return errors as array that onSubmit can use. [15:56:34] I carn't find any extension that does what your suggesting. [15:57:14] saper: Plus the exception is there for files. [16:02:38] if I do an API query such as: https://en.wikipedia.org/w/api.php?action=query&meta=userinfo&uiprop=options how do I return a specific option instead of all of them? [16:05:32] wmat: you can't maje the api return just a specific option. You'll have to filter on client-side [16:05:36] *make [16:05:53] bummer, thanks though [16:24:45] Vulpix: can I use the API to query a specific Users options? [16:31:02] no, user options are private [16:31:02] you can only query your user options, not other's [16:31:53] thx again [17:25:33] is there a way to import/convert reST pages to mediawiki? or ... a plugin that can interpret reST format? [17:26:21] oozbooz: pandoc [17:26:22] http://stackoverflow.com/a/3796608/582542 [17:28:40] ori, I've tried that ... reST/sphinx syntax are not fully processed/understood by pandoc ... [17:28:50] a lot of manual clean up is required [17:30:08] it is easier to cut and paste HTML into mediawiki WYSWYG editor ... though still, manual intervention needed [19:56:39] Can https://meta.wikimedia.org/wiki/User:Nemo_bis/global.js cause neverending loading as in https://phabricator.wikimedia.org/F2923369 ? I disabled all browser extensions, not related [20:35:30] How can i use an if php code in a property in php. [20:36:01] public static $derivativeSettings = array( if ( $wgEnabledTranscodeSet != "OGV_160P" || $wgEnabledTranscodeSet != WebVideoTranscode::ENC_OGV_160P ) { [20:36:01] WebVideoTranscode::ENC_OGV_160P => [20:36:02] array( [20:36:02] 'maxSize' => '288x160', [20:36:02] 'videoBitrate' => '160', [20:36:03] 'framerate' => '15', [20:36:05] 'audioQuality' => '-1', [20:36:07] 'samplerate' => '44100', [20:36:09] 'channels' => '2', [20:36:11] 'noUpscaling' => 'true', [20:36:13] 'twopass' => 'false', // will be overridden by $wgTmhTheoraTwoPassEncoding [20:36:17] 'optimize' => 'true', [20:36:19] 'keyframeInterval' => '128', [20:36:21] 'bufDelay' => '256', [20:36:23] 'videoCodec' => 'theora', [20:36:25] 'type' => 'video/ogg; codecs="theora, vorbis"', [20:36:27] ), [20:36:55] https://dpaste.de/aeTo [20:37:59] I get unexpected T_IF [20:38:24] lol [20:38:45] You can't do if's inside arrays [20:38:54] Your array isn't being assigned anywhere [20:39:07] paladox: you want to do something like [20:39:11] inside your IF [20:39:13] if ( ) { [20:39:28] $myArray[KEY::HERE] = array( ); [20:39:30] } [20:39:44] Oh thanks. I will try that. [20:40:02] I tryed it without array and came up with same error. [20:40:16] This time about dobule arrows => [20:42:17] Where are you trying to set things to? [20:42:23] So yould it be for example $derivativeSettings[WebVideoTranscode::ENC_OGV_160P] = array( ); [20:42:40] I am trying to set it so that we can use it in extension.json [20:42:48] https://gerrit.wikimedia.org/r/#/c/251545/ [20:43:18] https://gerrit.wikimedia.org/r/#/c/210176/ [20:44:49] I am trying to get it to work with strings for example "OGV_160P" and have WebVideoTranscode::ENC_OGV_160P as a backwards compat since you carn't set that in extension.json [20:45:15] https://gist.github.com/reedy/73183c5f8285c740d9d1/revisions [20:45:24] You need to do like I've done for one, for them all [20:45:49] Noting $derivativeSettings isn't defined anywhere currently [20:46:03] Also [20:46:04] + public static $derivativeSettings = array( [20:46:04] + WebVideoTranscode::TimedMediaEncoding [20:46:04] + ); [20:46:06] That looks wrong [20:46:11] Presumably it should be a function call [20:46:23] but then should it be wrapped in an array? [20:46:54] Your function doesn't return anything either [20:46:56] The code exist if you scroll through the WebVideoTranscode.php file youll find it is registered. [20:48:06] You seem to be wanting to dynamically populate an array [20:48:07] Which is fine [20:48:16] code is here https://dpaste.de/JBjb [20:51:54] The point is, you can't have the IF inside the array [20:51:56] Reedy: Thankyou i tested doing it for the first piece of code and it passes the test. [20:52:03] Right [20:52:10] Yes. thanks. [20:53:27] paladox: 446 won't work either [20:54:04] Reedy: Oh how would i fix that. [20:56:06] :) [21:06:19] I get Undefined index: OGV_160P in [21:18:08] in? [21:20:05] WebVideoTranscode.php [21:20:06] file [21:20:13] $derivativeSettings[WebVideoTranscode::ENC_OGV_160P] = [21:20:50] 21:20:00 Notice: Undefined index: OGV_160P in /mnt/jenkins-workspace/workspace/mediawiki-extensions-hhvm/src/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php on line 1050 [21:22:07] ENC_OGV_160P != OGV_160P [21:24:34] Thanks i will try that now [21:25:20] ? [21:28:10] does stop error. [21:28:22] This is how extension.json looks [21:28:23] "EnabledTranscodeSet": [ [21:28:23] "OGV_160P", [21:28:24] "OGV_240P", [21:28:24] "OGV_360P", [21:28:24] "OGV_480P", [21:28:25] "WEBM_160P", [21:28:27] "WEBM_360P", [21:28:29] "WEBM_480P", [21:28:33] "WEBM_720P", [21:28:35] "WEBM_1080P", [21:28:37] "WEBM_2160P", [21:28:39] "VP9_360P", [21:28:41] "VP9_720P", [21:28:43] "VP9_1080P", [21:28:47] "VP9_2160P" [21:28:47] ], [21:28:50] paladox, please use pastebin [21:28:56] paladox: please don't [21:29:00] Ok. [21:29:11] or equivalent [21:29:27] just don't flood the Chan [21:29:32] https://dpaste.de/xb7R