Siebrand Mazeland [Tue, 12 Aug 2008 21:10:49 +0000 (21:10 +0000)]
Localisation updates for core messages from Betawiki (2008-08-12 22:18 CEST)
Brion Vibber [Tue, 12 Aug 2008 20:13:45 +0000 (20:13 +0000)]
Revert r39198 "* (bug 15128) Feed:xmlEncode() function now declared as static"
FeedItem::xmlEncode() is only called *non*-statically
Siebrand Mazeland [Tue, 12 Aug 2008 20:10:49 +0000 (20:10 +0000)]
Localisation updates for core from Betawiki
Aaron Schulz [Tue, 12 Aug 2008 17:32:37 +0000 (17:32 +0000)]
$thumb could be null
Raimond Spekking [Tue, 12 Aug 2008 13:19:28 +0000 (13:19 +0000)]
Use formatNum for another number
Raimond Spekking [Tue, 12 Aug 2008 11:38:17 +0000 (11:38 +0000)]
Use formatNum for another number
Niklas Laxström [Tue, 12 Aug 2008 10:14:09 +0000 (10:14 +0000)]
* More helpful error messages
Rotem Liss [Tue, 12 Aug 2008 08:27:38 +0000 (08:27 +0000)]
Localization update for he.
Tim Starling [Tue, 12 Aug 2008 03:10:07 +0000 (03:10 +0000)]
By default, reject file uploads that look like ZIP files, to avoid the so-called GIFAR vulnerability.
Shinjiman [Tue, 12 Aug 2008 02:40:17 +0000 (02:40 +0000)]
Update the Chinese conversion tables
Last minute changes for the release branch 1.13
Ryan Schmidt [Tue, 12 Aug 2008 01:47:05 +0000 (01:47 +0000)]
* (bug 15128) Feed:xmlEncode() function now declared as static
Robert Leverington [Tue, 12 Aug 2008 00:39:15 +0000 (00:39 +0000)]
* Update RELEASE-NOTES for r39194.
Robert Leverington [Tue, 12 Aug 2008 00:25:35 +0000 (00:25 +0000)]
* (bug 15127) Add an additional space between the directionality marker and summary as Opera 9.50 and greater does not display the space. This is a safe work around as all other browsers will simply ignore this extra space.
Siebrand Mazeland [Mon, 11 Aug 2008 21:55:22 +0000 (21:55 +0000)]
(bug 14790) Export of category pages when using Category: prefix now actually gives results. makeTitleSafe() is only used to protect against nasty input, so use NS_MAIN which is empty. Any namespace prefix in the input will be stripped in wfExportGetPagesFromCategory() by getDBkey().
Brion Vibber [Mon, 11 Aug 2008 18:10:38 +0000 (18:10 +0000)]
Fix fatal error regression from r39077 -- 'break 2' must become 'break' when the second-level switch() is removed :)
Brion Vibber [Mon, 11 Aug 2008 18:08:01 +0000 (18:08 +0000)]
toogle -> toggle
Tim Starling [Mon, 11 Aug 2008 17:24:35 +0000 (17:24 +0000)]
Fixed incorrect detection of PHP's DOM module (bug 13770)
Shinjiman [Mon, 11 Aug 2008 16:38:09 +0000 (16:38 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Alexandre Emsenhuber [Mon, 11 Aug 2008 16:24:51 +0000 (16:24 +0000)]
(bug 15101) Displaying only bots edits in Special:Recentchanges now works again
Chad Horohoe [Mon, 11 Aug 2008 15:44:59 +0000 (15:44 +0000)]
More of the ongoing war against mkdir() in favor of wfMkdirParents()
Raimond Spekking [Mon, 11 Aug 2008 14:40:59 +0000 (14:40 +0000)]
Remove unused message 'redirectingto'
Aaron Schulz [Mon, 11 Aug 2008 14:20:37 +0000 (14:20 +0000)]
Add prependHTML() for extensions to avoid direct field calls
Aaron Schulz [Mon, 11 Aug 2008 13:47:10 +0000 (13:47 +0000)]
finish previous commit
Aaron Schulz [Mon, 11 Aug 2008 13:41:52 +0000 (13:41 +0000)]
Fix broken execution order. Setting the bodytext variable once already sent doesn't work.
Aaron Schulz [Mon, 11 Aug 2008 13:23:45 +0000 (13:23 +0000)]
Add getRevisionId()
Siebrand Mazeland [Mon, 11 Aug 2008 10:06:54 +0000 (10:06 +0000)]
(bug 14929) Add two command line switches to removeUnusedAccounts.php:
--ignore-touched=x : Ignore accounts touched within the lasts x days\n" );
--ignore-groups=x,y : Ignore accounts within these groups\n" );
Patch submitted by: Louperivois
Fran Rogers [Mon, 11 Aug 2008 08:30:29 +0000 (08:30 +0000)]
Addressing concerns in r39801 regarding editnotices; the message names now use dbkeys instead, and wfMsgForContent is now used consistently.
Fran Rogers [Mon, 11 Aug 2008 04:39:00 +0000 (04:39 +0000)]
Updated Doxygen docs for Title.php
Shinjiman [Mon, 11 Aug 2008 00:25:29 +0000 (00:25 +0000)]
Update the Chinese conversion tables
Last minute changes for the release branch 1.13
Brion Vibber [Sun, 10 Aug 2008 20:34:46 +0000 (20:34 +0000)]
Revert r39062 "Avoid running some queries multiple times by caching the result"
This complicates the code with extra internal caching for extremely rare cases (a couple extra queries on non-existent pages).
Brion Vibber [Sun, 10 Aug 2008 20:10:37 +0000 (20:10 +0000)]
More style cleanup -- encapsulate the page name class along with the naemspace classes.
* Reduce code duplication
* Fix Modern class since my last commit
* Update offline skin for DumpHTML
Brion Vibber [Sun, 10 Aug 2008 20:01:38 +0000 (20:01 +0000)]
Revert r39055 for now "Optional 'edit notices' on a per-namespace and per-page basis, per feature request 15102"
Sanitizer::escapeClass() isn't really suitable for constructing message key names; a lot of names won't be easy to predict and it would be difficult for people to set up a custom message for, say, a page name containing punctuation or non-ASCII characters.
The check for message availability is using wfMsgForContent() for the content language, but then the output is done via $wgOut->addWikiMsg() which will use the UI language. Is this the desired behavior?
Brion Vibber [Sun, 10 Aug 2008 19:48:30 +0000 (19:48 +0000)]
Cleanup for r39054 "Bug 15079, 'Add class="ns-talk" / "ns-subject" to <body>', also added ns-special for special pages."
* Avoid code duplication between Skin and SkinTemplate
* Encapsulate namespace class logic into one function
* Split giant huge line of ?:s with legible code :)
Siebrand Mazeland [Sun, 10 Aug 2008 18:32:10 +0000 (18:32 +0000)]
* (bug 14165, bug 14294) Wikimedia specific configuration in convertGrammar() for 13 localisations (be, be-tarask, bs, cs, dsb, ga, gsw, hsb, hu, lv, rmy, sk, sl) removed. The settings have been put in extension WikimediaMessages. For be, be-tarask, bs, dsb, hsb some duplicates (1=1) were removed. Patch for Czech by Danny B.
* Also put the wgGrammarForms from the Wikimedia configuration in here, so everything is in one place. Bonus with this setup is that there will be a little less work for Wikimedia shell operators, as the wgGrammarForms configuration is now accessible to i18n committers.
* Header for WikimediaMessages.php, and add myself to extension credits.
WARNING to Wikimedia shell operators: the whole section "wgGrammarForms" in InitialiseSettings.php.html should be remove after updating to this version. It will most probably overrule all settings in WikimediaMessages because of "'default' => array()"
Alexandre Emsenhuber [Sun, 10 Aug 2008 18:17:09 +0000 (18:17 +0000)]
Fix for r38784: force the noconvertlink toggle to be marked as used, otherwise it is in the Misc section if not used
Chad Horohoe [Sun, 10 Aug 2008 16:48:15 +0000 (16:48 +0000)]
Cleanup to r39058. Slightly less code than before. Same result :)
Chad Horohoe [Sun, 10 Aug 2008 16:19:09 +0000 (16:19 +0000)]
Use wfMkdirParents() because it's cooler (and mkdir() would've failed on parent directory creation without the 'recursive' flag). Also removed an icky hardcoded directory mode. Sadly, this does not fix bug 15108 :p
Niklas Laxström [Sun, 10 Aug 2008 11:59:55 +0000 (11:59 +0000)]
* Removed accidentally committed debugging
Niklas Laxström [Sun, 10 Aug 2008 10:44:52 +0000 (10:44 +0000)]
* (bug 15105) Restoring polish linktrail due to r38751
- candidate for backporting
Niklas Laxström [Sun, 10 Aug 2008 10:30:52 +0000 (10:30 +0000)]
* Whitespace fixes
* Avoid running some queries multiple times by caching the result
- Title::isDeleted is called twice when viewing a page that does not exist by SkinTemplate::buildContentActionUrls and Skin::getUndeleteLink
- Title::getTitleProtections is called twice when viewing a page that does not exist by SkinTemplate::buildContentActionUrls and efUniversalEditLink
Siebrand Mazeland [Sun, 10 Aug 2008 10:16:19 +0000 (10:16 +0000)]
Localisation updates for core messages from Betawiki (2008-08-10 11:10 CEST)
SQL [Sun, 10 Aug 2008 09:22:27 +0000 (09:22 +0000)]
Try at fixing bug 15052 - Skins should add their name as a class in <body>
Fran Rogers [Sun, 10 Aug 2008 08:31:33 +0000 (08:31 +0000)]
Optional 'edit notices' on a per-namespace and per-page basis, per feature request 15102
SQL [Sun, 10 Aug 2008 08:29:05 +0000 (08:29 +0000)]
Bug 15079, 'Add class="ns-talk" / "ns-subject" to <body>', also added ns-special for special pages.
Aaron Schulz [Sun, 10 Aug 2008 07:14:08 +0000 (07:14 +0000)]
Another go at extension CSS order
Aaron Schulz [Sun, 10 Aug 2008 07:10:05 +0000 (07:10 +0000)]
Filecache should check &useskin. This should be backported.
Brion Vibber [Sun, 10 Aug 2008 00:54:26 +0000 (00:54 +0000)]
Revert r39021 "Tweak css load order (broken for extensions since r38116)"
This regresses us back from using <link rel="stylesheet">, which we want, to using @import, which we don't.
There are a few reasons we don't want it:
* IE and Firefox at least don't save @import'ed stylesheets when you save a web page as bundled HTML + resources, which is annoying
* Allegedly, browsers may be more efficient about the order of things they load when using <link>, however I haven't tested this
* the CSS media markers may be different, we're trying to make that consistent...
* Trying to get things to use a consistent interface so we can switch to merging and compressing all these files in a sane fashion
Aaron Schulz [Sat, 9 Aug 2008 18:24:06 +0000 (18:24 +0000)]
Tweak css load order (broken for extensions since r38116)
Huji [Sat, 9 Aug 2008 17:28:07 +0000 (17:28 +0000)]
Localisation updates: Adding/updating Persian translations
Siebrand Mazeland [Sat, 9 Aug 2008 15:34:11 +0000 (15:34 +0000)]
Localisation updates for core messages from Betawiki (2008-08-09 17:11 CEST)
Jon Harald Søby [Sat, 9 Aug 2008 14:52:04 +0000 (14:52 +0000)]
Changing name of Nauruan from “Ekakairũ Naoero” to “Dorerin Naoero”; this was pointed out by a Nauruan speaker a looong time ago on nawiki, but no-one then knew how/where to fix it. But now I do, so fixing.
Alexandre Emsenhuber [Sat, 9 Aug 2008 13:31:15 +0000 (13:31 +0000)]
For compatibility with PHP 5.3.0alpha1: specify class name instead of passing by ref the title object: was throwing the following error:
Warning: Parameter 2 to Parser::parse() expected to be a reference, value given in ./includes/StubObject.php on line 58
followed by:
Fatal error: Call to a member function getLanguageLinks() on a non-object in ./includes/OutputPage.php on line 463
Siebrand Mazeland [Sat, 9 Aug 2008 11:50:08 +0000 (11:50 +0000)]
Remove empty convertGrammar()
Leon Weber [Sat, 9 Aug 2008 11:19:18 +0000 (11:19 +0000)]
(bug 6387) Introduced new setting $wgCategoryPrefixedDefaultSortkey which
allows having the unprefixed page title as the default category sortkey.
Although creating sane defaults should always be preferred over introducing
new config options, we cannot just remove the old behaviour here, as some
peoply might still rely on it. However, the sortkey {{PAGENAME}} is already
widely used for circumventing the current behaviour.
Rotem Liss [Sat, 9 Aug 2008 11:02:09 +0000 (11:02 +0000)]
Removing colon from links in log events: The colon is shown in Special:Log. The colon is also not necessary in edit summaries, though it doesn't show there, so removing it there too.
Daniel Friesen [Sat, 9 Aug 2008 06:08:54 +0000 (06:08 +0000)]
Add 3 new functions to the PPTemplateFrames to allow extensions to efficiently extract the whole list of parameters (or only numbered or named) passed to the template they are nested inside of.
Fran Rogers [Sat, 9 Aug 2008 02:32:08 +0000 (02:32 +0000)]
Don't add the 'stub' class to redlinks
Leon Weber [Sat, 9 Aug 2008 01:46:25 +0000 (01:46 +0000)]
remove the somehow unnecessary comment
Brion Vibber [Sat, 9 Aug 2008 00:33:02 +0000 (00:33 +0000)]
Don't freak out about #redirect: [[blah]], this was relatively common usage in older Wikipedia edits.
Brion Vibber [Sat, 9 Aug 2008 00:17:00 +0000 (00:17 +0000)]
quickie script to look for bad marked redirects
Siebrand Mazeland [Fri, 8 Aug 2008 23:43:41 +0000 (23:43 +0000)]
Strip commented out convertGrammar()
Brion Vibber [Fri, 8 Aug 2008 22:15:50 +0000 (22:15 +0000)]
Cleanup for r38886 "(bug 12370) Add throttle on password attempts. Defaults to max 5 attempts in 5 minutes."
Generated memcache key used the user name, which could contain spaces or be overlong, leading to failure to enforce the check.
Switched to making the key using md5 of the username instead of the raw name, so "I Am Rocking" will get throttled as well as "WikiSysop".
Note that it still will have no effect on a default install (with no general cache engine); for this sort of security-friendly thing it might be wise to use the DB-based cache to ensure it's functional.
Brion Vibber [Fri, 8 Aug 2008 22:02:30 +0000 (22:02 +0000)]
More cleanup from r38880 -- remove the rest of the $2 crap from the 108 other localizations infected by it :)
Brion Vibber [Fri, 8 Aug 2008 21:56:58 +0000 (21:56 +0000)]
Revert r38879, 38880 "(bug 14002) Change cascade protection warning message to be consistent with cascade-protection 'blocked' message."
Incompatible change to message, and just seems kind of ugly. It's usually easier to maintain the core message without having to remember to slap "and the bit that always follows it" on the end every time.
Probably the other message referred to should be fixed to follow general conventions, rather than this one changed to break them. :)
Brion Vibber [Fri, 8 Aug 2008 21:50:37 +0000 (21:50 +0000)]
Revert r38876 "(bug 2443) Add image name as alt-text when no caption is provided."
This broke four test cases:
4 previously failing test(s) now PASSING! :)
* Right-aligned image [Fixed between 08-Aug-2008 21:37:38, 1.14alpha (r38954) and now]
* Centre-aligned image [Fixed between 08-Aug-2008 21:37:38, 1.14alpha (r38954) and now]
* None-aligned image [Fixed between 08-Aug-2008 21:37:38, 1.14alpha (r38954) and now]
* Width + Height sized image (using px) (height is ignored) [Fixed between 08-Aug-2008 21:37:38, 1.14alpha (r38954) and now]
Please recommit with fixes to the existing test cases and some new test cases to cover cases where an empty caption is explicitly requested, see https://bugzilla.wikimedia.org/show_bug.cgi?id=2443#c11
Aaron Schulz [Fri, 8 Aug 2008 21:43:34 +0000 (21:43 +0000)]
$wgPasswordAttemptThrottle cleanup
Niklas Laxström [Fri, 8 Aug 2008 21:31:38 +0000 (21:31 +0000)]
* Format numbers passed to messages
* Some whitespace changes
Brion Vibber [Fri, 8 Aug 2008 21:02:52 +0000 (21:02 +0000)]
Cleanup to r38831 -- don't check _just_ 'rss' and 'atom', take anything. :)
Brion Vibber [Fri, 8 Aug 2008 20:56:46 +0000 (20:56 +0000)]
Cleanup to cleanup -- keep the div name consistent! There's no reason to invent a new div id just because there's a different number of items.
Brion Vibber [Fri, 8 Aug 2008 20:55:25 +0000 (20:55 +0000)]
Cleanup to r38799 ("Add a more descriptive message to the links-to-image section for the case that more than 100 pages link to a file.")
Lift out a little duplicated code for good style
Siebrand Mazeland [Fri, 8 Aug 2008 20:35:57 +0000 (20:35 +0000)]
hsb -> dsb
Rotem Liss [Fri, 8 Aug 2008 17:40:44 +0000 (17:40 +0000)]
Localization fixes.
Alexandre Emsenhuber [Fri, 8 Aug 2008 17:34:36 +0000 (17:34 +0000)]
Fixes for maintenance/checkAutoLoader.php:
* Fix fatal error: access to undefined static member variable AutoLoader::$localClasses, use $wgAutoloadLocalClasses instead
* Use a regexp if parsekit_compile_file() doesn't exist.
Siebrand Mazeland [Fri, 8 Aug 2008 17:11:10 +0000 (17:11 +0000)]
Typo
Shinjiman [Fri, 8 Aug 2008 17:06:57 +0000 (17:06 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
re-tweaking messages that leftover on r38784
Leon Weber [Fri, 8 Aug 2008 16:12:05 +0000 (16:12 +0000)]
fixing a missing tab
Siebrand Mazeland [Fri, 8 Aug 2008 15:59:55 +0000 (15:59 +0000)]
Localisation updates for core messages from Betawiki (2008-08-08 17:40 CEST)
Leon Weber [Fri, 8 Aug 2008 15:53:49 +0000 (15:53 +0000)]
Introduced a new hook 'SkinAfterContent' that allows extensions to add text
after the page content and article metadata. Updated all skins and skin
templates to work with that hook.
The hook is added in the newly introduced Skin::hookAfterContent(). It
couldn't be implemented anywhere else as we want to be able using a single hook
in all skins:
Some skins are based on SkinTemplate (e.g. MonoBook), while
some directly extend the Skin class (like CologneBlue). The Skin based ones
collect their output from several functions from Skin class, while SkinTemplate
prepares an array with all the needed data and passes it to the skins using it.
Thus we had to create said new protected function for running that hook. SkinTemplate
pushes the function's output into the data array. The Skin class based skins
directly use the function's output.
Aryeh Gregor [Fri, 8 Aug 2008 15:45:52 +0000 (15:45 +0000)]
Unescape more "safe" characters when producing URLs, for added prettiness. Checked against RFC 1738; should cause no problems if wfUrlencode() is only applied to bits of the URL after the domain name. And if it is applied to the domain name or protocol as well, this is probably less broken, if anything, not more, since hex escapes aren't permitted in the domain name or protocol part.
Siebrand Mazeland [Fri, 8 Aug 2008 15:02:43 +0000 (15:02 +0000)]
(rationale by Purodha) To some extent at least, category pages, and media pages, can now be subjects, or targets, of redirects, protections, and renames. Messages that potentially link to one of those with wikicode [[$N]] ought to be altered to now use [[:$N]], which unlike the other, always correctly links to all pages in all namespaces. Some messages have been adapted recently. Fixing the remaining candidates in MediaWiki code:
* autoredircomment
* redirectingto
* import-logentry-upload
* protectedarticle
* unprotectedarticle
* modifiedarticleprotection
* delete and move text
* 1movedto2
* 1movedto2 redir
Siebrand Mazeland [Fri, 8 Aug 2008 14:38:05 +0000 (14:38 +0000)]
Localisation updates for core messages from Betawiki (2008-08-08 16:20 CEST)
* updated 'cascadeprotectedwarning'
* updated special page name capitalisation
Chad Horohoe [Fri, 8 Aug 2008 14:24:05 +0000 (14:24 +0000)]
Should be the last of the 0777's :)
* Use wfMkdirParents() instead of mkdir() with a recursive argument.
* Also, allow $wgDirectoryMode take over, instead of hardcoding 0777.
* +formatting
Chad Horohoe [Fri, 8 Aug 2008 13:48:16 +0000 (13:48 +0000)]
(bug 14868) Setting $wgFeedDiffCutoff to 0 now stops generation of the diff entirely, not just display of it. No point in wasting time doing the former if you don't want the latter :)
Rotem Liss [Fri, 8 Aug 2008 13:15:29 +0000 (13:15 +0000)]
Localization update for he.
Rotem Liss [Fri, 8 Aug 2008 13:08:19 +0000 (13:08 +0000)]
Localization: Fixes for English file and messages.inc.
Rotem Liss [Fri, 8 Aug 2008 12:57:33 +0000 (12:57 +0000)]
Betawiki must not add wrong credits.
SQL [Fri, 8 Aug 2008 12:23:17 +0000 (12:23 +0000)]
Fix bug 15016 - 'Templates used on this page' inconsistent between editing and 'view source'. Implemented it in the same basic way that it's implemented in EditPage.php
Andrew Garrett [Fri, 8 Aug 2008 12:10:30 +0000 (12:10 +0000)]
Change title of Ipblocklist, to be consistent with other special pages
Andrew Garrett [Fri, 8 Aug 2008 11:49:39 +0000 (11:49 +0000)]
* (bug 12370) Add throttle on password attempts. Defaults to max 5 attempts in 5 minutes.
Andrew Garrett [Fri, 8 Aug 2008 10:43:03 +0000 (10:43 +0000)]
Message updates from last commit
Andrew Garrett [Fri, 8 Aug 2008 10:42:38 +0000 (10:42 +0000)]
(bug 14002) Change cascade protection warning message to be consistent with cascade-protection 'blocked' message.
Andrew Garrett [Fri, 8 Aug 2008 10:24:09 +0000 (10:24 +0000)]
* (bug 2443) Add image name as alt-text when no caption is provided.
Tim Starling [Fri, 8 Aug 2008 09:47:36 +0000 (09:47 +0000)]
Fix fix r38823
Tim Starling [Fri, 8 Aug 2008 09:37:22 +0000 (09:37 +0000)]
Don't limit setlocale() hack to PHP 5.2.6, as per comment on bug 14944.
Siebrand Mazeland [Fri, 8 Aug 2008 08:47:05 +0000 (08:47 +0000)]
Fix unescaped "
Siebrand Mazeland [Fri, 8 Aug 2008 08:45:04 +0000 (08:45 +0000)]
Localisation updates for core messages from Betawiki (2008-08-08 10:12 CEST)
Raimond Spekking [Fri, 8 Aug 2008 06:50:12 +0000 (06:50 +0000)]
Fix bugnumber, linebreak at 80.
Andrew Garrett [Fri, 8 Aug 2008 05:56:43 +0000 (05:56 +0000)]
Refactor out Block::isWhitelistedFromAutoblocks
Shinjiman [Fri, 8 Aug 2008 05:22:25 +0000 (05:22 +0000)]
Update the Chinese conversion tables
Last minute changes for the release branch 1.13
Shinjiman [Fri, 8 Aug 2008 04:46:59 +0000 (04:46 +0000)]
Update the Chinese conversion tables
Last minute changes for the release branch 1.13