lhc/web/wiklou.git
12 years agoAdd BeforePageRedirect hook to OutputPage, allowing extensions to override redirect...
Brion Vibber [Wed, 14 Dec 2011 00:38:21 +0000 (00:38 +0000)]
Add BeforePageRedirect hook to OutputPage, allowing extensions to override redirect output.

This is needed by MobileFrontend to normalize some redirects to the mobile site, such as on login.

12 years ago* (bug 32461) Add two-digit short form year for Persian calendar ({{#time:xiy}})
Brion Vibber [Wed, 14 Dec 2011 00:32:56 +0000 (00:32 +0000)]
* (bug 32461) Add two-digit short form year for Persian calendar ({{#time:xiy}})

Patch by Platonides https://bugzilla.wikimedia.org/attachment.cgi?id=9490&action=diff
Plus test case. Note the test case uses Latin-style digits because it's testing English; in fa you'd get the persian digits as in the examples on the bug.

12 years agoUpdate mediawiki & viewvc links on Special:Version to https
Brion Vibber [Tue, 13 Dec 2011 23:54:27 +0000 (23:54 +0000)]
Update mediawiki & viewvc links on Special:Version to https

12 years agofix depracted method usage
Jeroen De Dauw [Tue, 13 Dec 2011 22:24:38 +0000 (22:24 +0000)]
fix depracted method usage

12 years agocomment out another to soon placed warning
Jeroen De Dauw [Tue, 13 Dec 2011 21:37:19 +0000 (21:37 +0000)]
comment out another to soon placed warning

12 years agorevert r106095, fix apparently not this simple
Jeroen De Dauw [Tue, 13 Dec 2011 21:34:16 +0000 (21:34 +0000)]
revert r106095, fix apparently not this simple

12 years agomake xdebug messages above everything
Antoine Musso [Tue, 13 Dec 2011 21:31:38 +0000 (21:31 +0000)]
make xdebug messages above everything

This way we can actually read the message. Please note this actually hide
the content behind but I feel it is better to see the backtrace.

TODO: maybe add a debug.css stylesheets wich is only loaded for developers?

12 years agonew method was added in the same rel, so wait before showing the notice. follow up...
Jeroen De Dauw [Tue, 13 Dec 2011 21:19:10 +0000 (21:19 +0000)]
new method was added in the same rel, so wait before showing the notice. follow up to r106070

12 years agologName -> getName
Jeroen De Dauw [Tue, 13 Dec 2011 21:17:32 +0000 (21:17 +0000)]
logName -> getName

12 years agofix depracted method usage
Jeroen De Dauw [Tue, 13 Dec 2011 21:16:57 +0000 (21:16 +0000)]
fix depracted method usage

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 13 Dec 2011 20:50:04 +0000 (20:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agomake docs more clear, method can only be used as is since 1.18, not 1.16
Jeroen De Dauw [Tue, 13 Dec 2011 20:45:35 +0000 (20:45 +0000)]
make docs more clear, method can only be used as is since 1.18, not 1.16

12 years agoAdd section header for r105954/r105963
Raimond Spekking [Tue, 13 Dec 2011 20:35:02 +0000 (20:35 +0000)]
Add section header for r105954/r105963

12 years agoPartly revert r106070 for now: Flooding of translatewiki.net log/channel:
Raimond Spekking [Tue, 13 Dec 2011 20:23:19 +0000 (20:23 +0000)]
Partly revert r106070 for now: Flooding of translatewiki.net log/channel:
PHP Notice: Use of SpecialPage::getPage was deprecated in MediaWiki 1.18. [Called from SFFormLinker::getFormEditLinkForPage in /www/w/extensions/SemanticForms/includes/SF_FormLinker.php at line 207] in /www/w/includes/GlobalFunctions.php on line 3520

12 years agoFollowup r106070, r86347: copy some doc comments that apply to multiple functions...
Brion Vibber [Tue, 13 Dec 2011 20:20:03 +0000 (20:20 +0000)]
Followup r106070, r86347: copy some doc comments that apply to multiple functions so doxygen will pick them up

12 years agoPartly revert r106070 for now: Flooding of translatewiki.net log/channel:
Raimond Spekking [Tue, 13 Dec 2011 20:10:30 +0000 (20:10 +0000)]
Partly revert r106070 for now: Flooding of translatewiki.net log/channel:
PHP Notice: Use of User::getSkin was deprecated in MediaWiki 1.18. [Called from TalkpageView::show in /www/w/extensions/LiquidThreads/pages/TalkpageView.php at line 251] in /www/w/includes/GlobalFunctions.php on line 3520
PHP Notice: Use of User::getSkin was deprecated in MediaWiki 1.18. [Called from MessageTable::contents in /www/w/extensions/Translate/utils/MessageTable.php at line 98] in /www/w/includes/GlobalFunctions.php on line 3520
PHP Notice: Use of User::getSkin was deprecated in MediaWiki 1.18. [Called from TranslationHelpers::ajaxEditLink in /www/w/extensions/Translate/utils/TranslationHelpers.php at line 1186] in /www/w/includes/GlobalFunctions.php on line 3520
PHP Notice: Use of User::getSkin was deprecated in MediaWiki 1.18. [Called from ThreadPermalinkView::getSubtitle in /www/w/extensions/LiquidThreads/pages/ThreadPermalinkView.php at line 153] in /www/w/includes/GlobalFunctions.php on line 3520
and maybe more

12 years agofix deprecated method usage
Jeroen De Dauw [Tue, 13 Dec 2011 20:01:24 +0000 (20:01 +0000)]
fix deprecated method usage

12 years agobug 33035: Followup r105925: set to null rather than unset so we don't get an undefin...
Brion Vibber [Tue, 13 Dec 2011 19:58:44 +0000 (19:58 +0000)]
bug 33035: Followup r105925: set to null rather than unset so we don't get an undefined property error later

Apparently the unset() in Language::setCode() could cause the later is_null check in getHtmlCode() to fail, though I could not reproduce it myself.

12 years agofix deprecated method usage
Jeroen De Dauw [Tue, 13 Dec 2011 19:51:54 +0000 (19:51 +0000)]
fix deprecated method usage

12 years agoadded missing deprecation notices
Jeroen De Dauw [Tue, 13 Dec 2011 19:51:03 +0000 (19:51 +0000)]
added missing deprecation notices

12 years agoFollowup r106046, pull ar_sha1 in getRevision
Sam Reed [Tue, 13 Dec 2011 16:58:52 +0000 (16:58 +0000)]
Followup r106046, pull ar_sha1 in getRevision

12 years agoFix:
Sam Reed [Tue, 13 Dec 2011 16:57:02 +0000 (16:57 +0000)]
Fix:

PHP Notice: Undefined property: stdClass::$ar_sha1 in Revision.php on line 127

12 years agoAdd a newline, the below isn't too readable
Sam Reed [Tue, 13 Dec 2011 16:51:24 +0000 (16:51 +0000)]
Add a newline, the below isn't too readable

Fixing protocol-relative entries in the externallinks table...
10020030040050060070080090010001100120013001400150016001700180019002000Done, 2007 rows updated.

12 years agoAdd correct margin for dd when user language direction is different from intended...
Robin Pepermans [Tue, 13 Dec 2011 16:48:57 +0000 (16:48 +0000)]
Add correct margin for dd when user language direction is different from intended direction, similar to ul/ol styles

12 years agoFollow up to r106037; fix location of check
Jeroen De Dauw [Tue, 13 Dec 2011 16:42:56 +0000 (16:42 +0000)]
Follow up to r106037; fix location of check

12 years agoFollow up to r105979;
Jeroen De Dauw [Tue, 13 Dec 2011 15:49:52 +0000 (15:49 +0000)]
Follow up to r105979;

12 years agoSeriously, don't use "wgOut" as a function parameter name
Sam Reed [Tue, 13 Dec 2011 15:47:04 +0000 (15:47 +0000)]
Seriously, don't use "wgOut" as a function parameter name

12 years agoPublic for all
Sam Reed [Tue, 13 Dec 2011 15:40:15 +0000 (15:40 +0000)]
Public for all

12 years agoBug 16794 - $wgSharedDB PostgreSQL support
Mark A. Hershberger [Tue, 13 Dec 2011 15:06:30 +0000 (15:06 +0000)]
Bug 16794 - $wgSharedDB PostgreSQL support

Updated fix from Luca Fulchir

12 years agoRemoved Title::isValidCssJsSubpage(), deprecated since 1.17 (77309), and updated...
Robin Pepermans [Tue, 13 Dec 2011 11:54:02 +0000 (11:54 +0000)]
Removed Title::isValidCssJsSubpage(), deprecated since 1.17 (77309), and updated all remaining usage in extensions

12 years agoupdate all core usage of deprecated Title::userCanRead()
Robin Pepermans [Tue, 13 Dec 2011 11:05:30 +0000 (11:05 +0000)]
update all core usage of deprecated Title::userCanRead()

12 years agoFix PHP Notice: Use of Title::userCanRead was deprecated in MediaWiki 1.19. [Called...
Raimond Spekking [Tue, 13 Dec 2011 10:47:31 +0000 (10:47 +0000)]
Fix PHP Notice: Use of Title::userCanRead was deprecated in MediaWiki 1.19. [Called from SpecialSearch::showHit in /www/w/includes/specials/SpecialSearch.php at line 549] in /www/w/includes/GlobalFunctions.php on line 3520
in consequence of r105985

12 years agoPartly revert r105985 for now: Flooding of translatewiki.net log/channel:
Raimond Spekking [Tue, 13 Dec 2011 10:40:32 +0000 (10:40 +0000)]
Partly revert r105985 for now: Flooding of translatewiki.net log/channel:
PHP Notice: Use of wfUILang was deprecated in MediaWiki 1.18. [Called from TalkpageView::show in /www/w/extensions/LiquidThreads/pages/TalkpageView.php at line 289] in /www/w/includes/GlobalFunctions.php on line 3520

12 years agoPartly revert r105985 for now: Flooding of translatewiki.net log/channel:
Raimond Spekking [Tue, 13 Dec 2011 10:36:16 +0000 (10:36 +0000)]
Partly revert r105985 for now: Flooding of translatewiki.net log/channel:
PHP Notice: Use of Linker::makeLinkObj was deprecated in MediaWiki 1.16. [Called from call_user_func_array in (internal function)] in /www/w/includes/GlobalFunctions.php on line 3520
PHP Notice: Use of Linker::makeKnownLinkObj was deprecated in MediaWiki 1.16. [Called from call_user_func_array in (internal function)] in /www/w/includes/GlobalFunctions.php on line 3520

12 years agochange args for feedback and api -- all optional, in array.
Neil Kandalgaonkar [Tue, 13 Dec 2011 10:26:49 +0000 (10:26 +0000)]
change args for feedback and api -- all optional, in array.

12 years agobring back Linker::tooltip()
Antoine Musso [Tue, 13 Dec 2011 09:52:39 +0000 (09:52 +0000)]
bring back Linker::tooltip()

Was marked deprecated with r42702 although that helper makes code a bit
nicer:

 Linker::tooltip( 'message' );

 Xml::expandAttributes( array(
'title' => Linker::titleAttrib( 'message' )
 ) );

(the later would give you 'title=""' when 'tooltip-message' message does
not exist.

12 years agoback to display:block; for galleries
Antoine Musso [Tue, 13 Dec 2011 09:24:51 +0000 (09:24 +0000)]
back to display:block; for galleries

Display inline-block show weird behaviour when the gallery has text before
and after. Fomafix on cr of r93581 gave us some examples.

Reverts r93581

12 years agosince tag++
Jeroen De Dauw [Tue, 13 Dec 2011 05:25:06 +0000 (05:25 +0000)]
since tag++

12 years agoadd missing deprecation notices and added deprecation version to existing ones
Jeroen De Dauw [Tue, 13 Dec 2011 05:19:05 +0000 (05:19 +0000)]
add missing deprecation notices and added deprecation version to existing ones

12 years agoFollow up to r105983;
Jeroen De Dauw [Tue, 13 Dec 2011 05:00:27 +0000 (05:00 +0000)]
Follow up to r105983;

12 years agorem use of escapeLocalURL
Jeroen De Dauw [Tue, 13 Dec 2011 04:58:48 +0000 (04:58 +0000)]
rem use of escapeLocalURL

12 years agoadd support for passing a component arg to this function, so it can be used by extens...
Jeroen De Dauw [Tue, 13 Dec 2011 04:42:03 +0000 (04:42 +0000)]
add support for passing a component arg to this function, so it can be used by extensions as well (ie function foo depracted in extension bar 4.2)

12 years agofix deprecated method usage
Jeroen De Dauw [Tue, 13 Dec 2011 04:04:52 +0000 (04:04 +0000)]
fix deprecated method usage

12 years agomoved language library to core mediawiki.jqueryMsg
Neil Kandalgaonkar [Tue, 13 Dec 2011 03:03:05 +0000 (03:03 +0000)]
moved language library to core mediawiki.jqueryMsg

12 years agomoved message library that can parse limited wikitext, uses jquery, from UploadWizard...
Neil Kandalgaonkar [Tue, 13 Dec 2011 02:44:39 +0000 (02:44 +0000)]
moved message library that can parse limited wikitext, uses jquery, from UploadWizard to core

12 years agoadd jquery messages to core, config mediawiki.feedback to use it correctly
Neil Kandalgaonkar [Tue, 13 Dec 2011 02:44:34 +0000 (02:44 +0000)]
add jquery messages to core, config mediawiki.feedback to use it correctly

12 years agoAdd new message keys to go with r105954
Sam Reed [Tue, 13 Dec 2011 01:10:44 +0000 (01:10 +0000)]
Add new message keys to go with r105954

12 years agofeedback - move messages, etc from uploadwizard to core
Neil Kandalgaonkar [Mon, 12 Dec 2011 23:15:42 +0000 (23:15 +0000)]
feedback - move messages, etc from uploadwizard to core

12 years agofix r105935, wgContLang still used in the function
Robin Pepermans [Mon, 12 Dec 2011 22:08:17 +0000 (22:08 +0000)]
fix r105935, wgContLang still used in the function

12 years agonot sure if this span is really needed, but in any case it depends on user language...
Robin Pepermans [Mon, 12 Dec 2011 22:05:40 +0000 (22:05 +0000)]
not sure if this span is really needed, but in any case it depends on user language, not content language

12 years agoSimplify code (minor)
Robin Pepermans [Mon, 12 Dec 2011 21:56:26 +0000 (21:56 +0000)]
Simplify code (minor)

12 years agoNo need to use class="ltr", dir="ltr" is better
Robin Pepermans [Mon, 12 Dec 2011 21:08:28 +0000 (21:08 +0000)]
No need to use class="ltr", dir="ltr" is better

12 years agoFollowup r105812:
Daniel Friesen [Mon, 12 Dec 2011 20:09:06 +0000 (20:09 +0000)]
Followup r105812:
- Fix case of the wfBCP47 call
- Don't call wfBCP47 for every time getHtmlCode is called
- Add @since

12 years agoFollowup r105919:
Daniel Friesen [Mon, 12 Dec 2011 20:03:50 +0000 (20:03 +0000)]
Followup r105919:
- Fix a loose $variant I missed when cleaning up other methods.
- Add documentation to getLocalURL.
- Swap the disorganized docs on the dependent methods with a see comment.
- Add RELEASE-NOTES.

12 years agoFollowup r105921, RELEASE-NOTES.
Daniel Friesen [Mon, 12 Dec 2011 19:37:56 +0000 (19:37 +0000)]
Followup r105921, RELEASE-NOTES.

12 years agoIntroduce a Language::getMessagesFileName hook that will allow extensions to define...
Daniel Friesen [Mon, 12 Dec 2011 19:32:59 +0000 (19:32 +0000)]
Introduce a Language::getMessagesFileName hook that will allow extensions to define new language messages files outside of core.

12 years agoDeprecate the escape methods in Title.
Daniel Friesen [Mon, 12 Dec 2011 19:23:38 +0000 (19:23 +0000)]
Deprecate the escape methods in Title.

12 years agoReplace get{Local,Full,Link,Canonical}URL's $variant argument with a secondary $query...
Daniel Friesen [Mon, 12 Dec 2011 19:19:23 +0000 (19:19 +0000)]
Replace get{Local,Full,Link,Canonical}URL's $variant argument with a secondary $query argument and treat variant paths like we do action paths.

12 years agofix bug #32979 gM() -> mw.msg()
Neil Kandalgaonkar [Mon, 12 Dec 2011 19:18:32 +0000 (19:18 +0000)]
fix bug #32979 gM() -> mw.msg()

12 years agoReplace tabs with spaces to keep alignment.
Platonides [Mon, 12 Dec 2011 18:30:25 +0000 (18:30 +0000)]
Replace tabs with spaces to keep alignment.
The terminal tab size may not be 4 spaces, as this assumed.

12 years agoCaps fix in API parameter description
Max Semenik [Mon, 12 Dec 2011 17:22:20 +0000 (17:22 +0000)]
Caps fix in API parameter description

12 years agoFollow-up to r105870: dir="auto" on page title also for legacy skins (cologneblue...
Robin Pepermans [Mon, 12 Dec 2011 16:23:28 +0000 (16:23 +0000)]
Follow-up to r105870: dir="auto" on page title also for legacy skins (cologneblue etc)

12 years agoFollowup r105853 -- another instance of $request->getVal('filter', 'all') to replace...
Brion Vibber [Mon, 12 Dec 2011 15:51:34 +0000 (15:51 +0000)]
Followup r105853 -- another instance of $request->getVal('filter', 'all') to replace with $this->filter

12 years agofix typo in message
Antoine Musso [Mon, 12 Dec 2011 15:47:31 +0000 (15:47 +0000)]
fix typo in message

follow r105891

12 years agouse an helper to test NS subjects
Antoine Musso [Mon, 12 Dec 2011 15:39:01 +0000 (15:39 +0000)]
use an helper to test NS subjects

12 years agoadd some namespaces equality tests
Antoine Musso [Mon, 12 Dec 2011 15:31:48 +0000 (15:31 +0000)]
add some namespaces equality tests

Follow up 103893

12 years agouse MWNamespaceTest helpers based on __call()
Antoine Musso [Mon, 12 Dec 2011 15:26:12 +0000 (15:26 +0000)]
use MWNamespaceTest helpers based on __call()

* Added some new methos such as Watchable/Subpages/Capitalized/Content
* Fixed namespace 0 being converted to NS_ , now show NS_MAIN
* Converted all assertion calls to use the __call() hack

Follow up r105883

12 years agoStupid fatal
Chad Horohoe [Mon, 12 Dec 2011 15:12:38 +0000 (15:12 +0000)]
Stupid fatal

12 years agoSeparate Cli/Web logic for envCheckServer() per CR on r104576
Chad Horohoe [Mon, 12 Dec 2011 15:11:08 +0000 (15:11 +0000)]
Separate Cli/Web logic for envCheckServer() per CR on r104576

12 years agouse __call() to instantly have some new fresh helpers
Antoine Musso [Mon, 12 Dec 2011 15:02:47 +0000 (15:02 +0000)]
use __call() to instantly have some new fresh helpers

Only for MWNamespaceTest :-)

12 years agoRevert r105863: vepsän is an inflected form, not suitable for use alone. Vepsän kel...
Niklas Laxström [Mon, 12 Dec 2011 15:01:26 +0000 (15:01 +0000)]
Revert r105863: vepsän is an inflected form, not suitable for use alone. Vepsän kel' is the best expression to my knowledge.

12 years agoSelf-revert r105872, there's a deeper issue here
Chad Horohoe [Mon, 12 Dec 2011 13:45:33 +0000 (13:45 +0000)]
Self-revert r105872, there's a deeper issue here

12 years ago(bug 32984) ar_sha1 might not be set
Chad Horohoe [Mon, 12 Dec 2011 13:11:54 +0000 (13:11 +0000)]
(bug 32984) ar_sha1 might not be set

12 years agoFollowup to r105854. Made directionality inline rather than block-level, because...
Amir E. Aharoni [Mon, 12 Dec 2011 12:47:07 +0000 (12:47 +0000)]
Followup to r105854. Made directionality inline rather than block-level, because text alignment should be consistent with the rest of the site. Added support for Monobook and Modern skins.

12 years agoupdate message when dropping index ('index' not 'key')
Antoine Musso [Mon, 12 Dec 2011 10:48:49 +0000 (10:48 +0000)]
update message when dropping index ('index' not 'key')

Follow r99524

12 years ago'vep' name is just 'Vepsän'
Antoine Musso [Mon, 12 Dec 2011 10:30:01 +0000 (10:30 +0000)]
'vep' name is just 'Vepsän'

Follow up r105832

12 years agoBetter output message for ApiPurgeTests
Antoine Musso [Mon, 12 Dec 2011 10:25:29 +0000 (10:25 +0000)]
Better output message for ApiPurgeTests

Follow up r10833

12 years agocomments from r101845 on jquery.client.Test
Antoine Musso [Mon, 12 Dec 2011 10:23:04 +0000 (10:23 +0000)]
comments from r101845 on jquery.client.Test

12 years agoremove message keys from maintenance files too (r105855)
Raimond Spekking [Mon, 12 Dec 2011 07:33:46 +0000 (07:33 +0000)]
remove message keys from maintenance files too (r105855)

12 years agoReplaced the core message 'sectionlink' with getArrow, which is cleaner and does...
Amir E. Aharoni [Mon, 12 Dec 2011 06:40:40 +0000 (06:40 +0000)]
Replaced the core message 'sectionlink' with getArrow, which is cleaner and does the right thing in mixed RTL/LTR environment. Removed the message from the messages files, because it doesn't seem to be used elsewhere.

12 years agoFixes Bug 32403. Will only work on browsers that support dir="auto". Won't break...
Amir E. Aharoni [Mon, 12 Dec 2011 06:31:13 +0000 (06:31 +0000)]
Fixes Bug 32403. Will only work on browsers that support dir="auto". Won't break in other browsers.

12 years ago* (bug 32958) SpecialAllMessages: input form doesn't show and remember filter option
Brion Vibber [Mon, 12 Dec 2011 06:27:20 +0000 (06:27 +0000)]
* (bug 32958) SpecialAllMessages: input form doesn't show and remember filter option

Did this a little differently, but inspired by MrBlueSky's patch: https://bugzilla.wikimedia.org/attachment.cgi?id=9655

Rather than using the $this->custom values to check as in the patch, I moved $this->filter from the specialpage class (where it wasn't being used) to the pager class (where it was being used). Probably left over from a refactor.

12 years agoReverted r92364 (per-namespace permissions).
Tim Starling [Mon, 12 Dec 2011 06:03:01 +0000 (06:03 +0000)]
Reverted r92364 (per-namespace permissions).

This is the wrong configuration format for such a feature, and the wrong interface. We already have certain per-namespace permissions in the Title class, and we didn't need to add extra formal parameters to a whole lot of User methods in order to get them. The feature should be implemented wholly in Title, and the concept of user rights should remain relatively simple and easy to understand, and independent of its many applications, i.e. a user either has a right or doesn't. Rights are just a tool for developing access policies; the complexity should be in the caller.

The revert was mostly done by hand, since there were a lot of conflicts. I tried to preserve the gist of conflicting changes in r102187 and r102873. The test changes are not simple reverts, rather I just edited out the per-namespace tests. I reverted the followups r92589 and r104310.

12 years agoRevert r101091 per CR: the rule was removed intentionally in r98185.
Tim Starling [Mon, 12 Dec 2011 02:10:00 +0000 (02:10 +0000)]
Revert r101091 per CR: the rule was removed intentionally in r98185.

12 years agoMark the test as broken again seeing as Jenkins isn't happy
Sam Reed [Mon, 12 Dec 2011 00:07:22 +0000 (00:07 +0000)]
Mark the test as broken again seeing as Jenkins isn't happy

12 years agoRemove the (useless) configuration option $wgVectorShowVariantName. If set to false...
Robin Pepermans [Mon, 12 Dec 2011 00:03:15 +0000 (00:03 +0000)]
Remove the (useless) configuration option $wgVectorShowVariantName. If set to false (which is default), it is not clear to users what the dropdown menu is about. Secondly, other skins display all variants as different tabs. Thirdly, Serbian and Chinese projects (most active projects relevant to this) have set it to true.

12 years agoRevert r105834, WMF locally after fixing PHPUnit
Sam Reed [Sun, 11 Dec 2011 23:29:06 +0000 (23:29 +0000)]
Revert r105834, WMF locally after fixing PHPUnit

12 years agoMark testPurgeMainPage broken after r105828 and r105833
Sam Reed [Sun, 11 Dec 2011 22:39:48 +0000 (22:39 +0000)]
Mark testPurgeMainPage broken after r105828 and r105833

PhpUnit is more than broken locally (and phpunit.de is down)

12 years agoAttempt to fix tests broken by r105828
Sam Reed [Sun, 11 Dec 2011 21:49:05 +0000 (21:49 +0000)]
Attempt to fix tests broken by r105828

Test wanted in a specific order, now just look up wanted array key from title row

Untested as my phpunit tests seem to be b0rked locally :(

12 years agoSlight correction to Veps autonym per Wikipedia article and https://meta.wikimedia...
Robin Pepermans [Sun, 11 Dec 2011 21:13:18 +0000 (21:13 +0000)]
Slight correction to Veps autonym per Wikipedia article and https://meta.wikimedia.org/wiki/Requests_for_new_languages/Wikipedia_Veps_2 (and Google search confirms)

12 years agoMake ApiQueryBase::addTitleInfo() add the pageid also
Sam Reed [Sun, 11 Dec 2011 21:07:39 +0000 (21:07 +0000)]
Make ApiQueryBase::addTitleInfo() add the pageid also

12 years agoMore documentation updates as I've been going around
Sam Reed [Sun, 11 Dec 2011 20:57:57 +0000 (20:57 +0000)]
More documentation updates as I've been going around

12 years ago* (bug 32495) API should allow purge by pageids.
Sam Reed [Sun, 11 Dec 2011 20:43:42 +0000 (20:43 +0000)]
* (bug 32495) API should allow purge by pageids.

ApiPageSet isn't really designed for non query usage, but a little hacking and it can be made to work in the ApiPageSet mould. Allows us to use titles, pageids and revids, without the work of validating them and such ourselves

Same caveat that you can't use a mix of them in one request - tough!

12 years agoFollowup r105823, make it protected
Sam Reed [Sun, 11 Dec 2011 20:41:23 +0000 (20:41 +0000)]
Followup r105823, make it protected

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 11 Dec 2011 20:35:30 +0000 (20:35 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoTrailing full stops
Sam Reed [Sun, 11 Dec 2011 20:34:36 +0000 (20:34 +0000)]
Trailing full stops

12 years agoAdding a getDB function to ApiBase...
Sam Reed [Sun, 11 Dec 2011 20:32:37 +0000 (20:32 +0000)]
Adding a getDB function to ApiBase...

Not all subclasses will need/want it. It does however make it easier to pretend non ApiQuery derivatives actually are...

12 years agoFollow up r105821, as usual, commit the files I forgot to `svn add`
Daniel Friesen [Sun, 11 Dec 2011 19:49:16 +0000 (19:49 +0000)]
Follow up r105821, as usual, commit the files I forgot to `svn add`

12 years agoFollow up r102210:
Daniel Friesen [Sun, 11 Dec 2011 19:45:15 +0000 (19:45 +0000)]
Follow up r102210:
- Update maintenance/dev/ to install php inside ~/.mediawiki/php instead of ~/.mwphp
- Tweak README a bit
- Move the router.php into an includes along with two helper .sh files to cut out some of the repetition

12 years ago* (bug 32414) Empty page get a empty bytes attribute in Export/Dump
Sam Reed [Sun, 11 Dec 2011 19:01:11 +0000 (19:01 +0000)]
* (bug 32414) Empty page get a empty bytes attribute in Export/Dump

Pushing the values through intval seems enough, null -> 0

reedy@fenari:/home/wikipedia/common$ mwscript eval.php dewiki
> $var = null;

> var_dump( intval( $var ) );
int(0)

> var_dump($var );
NULL