Raimond Spekking [Mon, 17 Dec 2007 15:31:32 +0000 (15:31 +0000)]
* (bug 12145) Update Kazakh translations
Patch by AlefZet
Tim Starling [Mon, 17 Dec 2007 15:07:25 +0000 (15:07 +0000)]
* Strip comments early, before template expansion. This mimics the behaviour in the old parser. Added parser tests demonstrating the regression this fixes. The syntactic effect is fairly elegant, with comments taking effect at source level, as expected. The removeHTMLcomments() and preprocessToDom() passes could be merged at a later date.
* No need for comment stripping in Expr.php anymore
* Updated srvus() to roughly account for these changes
* Gave comment handling its own preprocessor tag, and split off comment handling from extensionSubstitution(). This only applies for the non-HTML modes, since in HTML mode, comments are stripped early.
* Strip comments from template argument names (PPFrame::newChild).
Thomas Bleher [Mon, 17 Dec 2007 12:24:16 +0000 (12:24 +0000)]
Find and fix places where globals were being used without declaring them.
All the places were found using a script, reproduced below, in case
anyone wants to reuse it.
But beware: The script produces a lot of false positives, because it
doesn't fully parse PHP and is fooled e.g. by javascript functions
inside of <<<HERE documents.
#!/usr/bin/perl -0777 -n
#
# find functions where variables starting with $wg are used without declaring them as globals
# should be given a list of files on the command line
#
# first remove all comments
# Warning: this may remove too much, e.g. if /* is inside a string
s,/\*.*?\*/,,sg; # remove multiline comments
s,#.*,,g; # remove single line comments starting with #
s,//.*,,g; # and the ones starting with //
s,(?<!\\)'.*?(?<!\\)',,g; # remove 'single quoted single-line strings'; may again remove too much
# now process each function one by one
# does not deal correctly with javascript functions embedded in <<HERE documents, unfortunately
#
while (/(^\s*)(?:(?:private|public|protected|static)\s+)*function\s+(\w+)\s*\((.*?)\)\s*\{(.*?)\1\}/msg) {
$fname = $2; $farg = $3; $fbody = $4;
%globals = ();
while ($farg =~ /(\$\w+)/g) { # treat arguments to functions as globals here
$globals{$1} = 1;
}
while ($fbody =~ /^\s*global\s+([^;]+?)\s*;/msg) { # find all global vars
for (split /\s*,\s*/, $1) {
$globals{$_} = 1;
}
}
while ($fbody =~ /(?<!\\)(\$wg\w+)\b/g) { # search for all variables starting with $wg and see if they are declared as globals
if (not $globals{$1}) {
print "Global $1 not declared in function $fname, file $ARGV\n";
$globals{$1} = 1; # warn only once
}
}
}
Niklas Laxström [Mon, 17 Dec 2007 08:41:18 +0000 (08:41 +0000)]
* Silence a warning of missing parameter
Siebrand Mazeland [Mon, 17 Dec 2007 08:16:56 +0000 (08:16 +0000)]
Localisation updates from Betawiki (2007-12-17 8:13 CET).
* an, arc, fi, wuu
Brion Vibber [Mon, 17 Dec 2007 05:17:24 +0000 (05:17 +0000)]
Update preferred URL for wikinfo interwiki
Shinjiman [Mon, 17 Dec 2007 03:44:52 +0000 (03:44 +0000)]
* Update Chinese translations
* Update Cantonese translations
* Update Old Chinese / Late Time Chinese translations
Andrew Garrett [Mon, 17 Dec 2007 03:01:30 +0000 (03:01 +0000)]
* Ignore case in checking for a changed email address in Special:Preferences.
* Bug reported by MZMcBride.
Greg Sabino Mullane [Sun, 16 Dec 2007 23:35:14 +0000 (23:35 +0000)]
Yet more cleanup of the protected_titles stuff.
Siebrand Mazeland [Sun, 16 Dec 2007 23:26:03 +0000 (23:26 +0000)]
Localisation updates from Betawiki.
* an, ar, ast, br, ca, cs, el, fi, fr, gl, hsb, kn, la, lb, loz, nds, nl, oc, sdc, sk, sv
Siebrand Mazeland [Sun, 16 Dec 2007 22:15:40 +0000 (22:15 +0000)]
Adding languages to interface that will get conditional Wikimedia project approval.
Aryeh Gregor [Sun, 16 Dec 2007 21:27:57 +0000 (21:27 +0000)]
(bug 12314) r28417 kind of left out tables.sql . . . changed pt_by to pt_user and removed pt_user index from tables.sql. This fixes MySQL, PostgreSQL still needs to be fixed.
Aryeh Gregor [Sun, 16 Dec 2007 20:12:12 +0000 (20:12 +0000)]
That last commit needs RELEASE-NOTES.
Aryeh Gregor [Sun, 16 Dec 2007 20:01:04 +0000 (20:01 +0000)]
Error message is practically invisible among all the text. Added <strong class="error"> so it's noticeable.
Aryeh Gregor [Sun, 16 Dec 2007 19:57:40 +0000 (19:57 +0000)]
Moving pages seems to have been completely broken for unprotected titles; fixed that. Note that it doesn't seem as though it necessarily works properly for protected titles either (cursory test prohibited me as a sysop from moving over sysop protection), but I haven't looked too closely at that, I'm doing something else now.
Greg Sabino Mullane [Sun, 16 Dec 2007 19:04:14 +0000 (19:04 +0000)]
Add test for correct information in parserTests.inc
Greg Sabino Mullane [Sun, 16 Dec 2007 18:36:18 +0000 (18:36 +0000)]
Add exceptions for protected_titles table.
Aryeh Gregor [Sun, 16 Dec 2007 18:23:20 +0000 (18:23 +0000)]
Parser tests need to create a temporary protected_titles table to avoid errors.
Siebrand Mazeland [Sun, 16 Dec 2007 17:48:24 +0000 (17:48 +0000)]
* remove UI languages 'ninnan' and 'zh-cfr': unused duplicates
* fix 'mus' UI name
* update a few comments
* add message file for ik, ny, tk, ve (stub imported from Wikipedia projects)
* add message file with fallback 'it' for eml, lld, lmo
Greg Sabino Mullane [Sun, 16 Dec 2007 16:34:30 +0000 (16:34 +0000)]
Move initial connection checks into their own function.
Victor Vasiliev [Sun, 16 Dec 2007 15:46:27 +0000 (15:46 +0000)]
* Introduce new user preference: ajaxsearch
* Drop strange status bar message
Greg Sabino Mullane [Sun, 16 Dec 2007 15:39:24 +0000 (15:39 +0000)]
Make a note about the reserved word problem.
Greg Sabino Mullane [Sun, 16 Dec 2007 15:32:34 +0000 (15:32 +0000)]
Add protected_titles table.
Rotem Liss [Sun, 16 Dec 2007 15:08:36 +0000 (15:08 +0000)]
Update.
Rotem Liss [Sun, 16 Dec 2007 14:59:36 +0000 (14:59 +0000)]
Added link to the old title in Special:Movepage, change proposed by Agbad@hewiki.
Victor Vasiliev [Sun, 16 Dec 2007 13:32:10 +0000 (13:32 +0000)]
wfSajaxSearch cleanup:
* Normalize titles
* Support namespaces (including special pages)
* Hide empty results
* Other fixes
Siebrand Mazeland [Sun, 16 Dec 2007 12:15:58 +0000 (12:15 +0000)]
Add Eastern Yiddish as UI language
Victor Vasiliev [Sun, 16 Dec 2007 10:06:42 +0000 (10:06 +0000)]
Fix output of wfSajaxSearch:
* Escape all messages
* Use pretty output for terms instead of urlencoded one
Siebrand Mazeland [Sun, 16 Dec 2007 09:35:13 +0000 (09:35 +0000)]
Localisation updates from Betawiki.
* an, ar, cs, el, ext, fi, ja, kn, la, lb, loz, nl, no, oc, sdc, sq, sv, wuu
Victor Vasiliev [Sun, 16 Dec 2007 08:59:47 +0000 (08:59 +0000)]
* (bug 12321) API list=blocks reveals private data
Shinjiman [Sun, 16 Dec 2007 05:30:49 +0000 (05:30 +0000)]
* Update Chinese translations
* Update Cantonese translations
* Update Old Chinese / Late Time Chinese translations
Aryeh Gregor [Sun, 16 Dec 2007 00:06:13 +0000 (00:06 +0000)]
* Special:Upload now lists permitted/prohibited file extensions.
* Split ambiguous filetype-badtype message into two new messages, filetype-unwanted-type and filetype-banned-type.
* Bits of minor code cleanup in SpecialUpload.php.
Andrew Garrett [Sat, 15 Dec 2007 23:51:54 +0000 (23:51 +0000)]
* Disallow moving to a title that has been protected with the protected titles functionality.
Niklas Laxström [Sat, 15 Dec 2007 21:30:41 +0000 (21:30 +0000)]
* Escape all output: (bug 12063) MediaWiki:Unusedimagestext is not wikified
Niklas Laxström [Sat, 15 Dec 2007 21:24:44 +0000 (21:24 +0000)]
* Escape all output
* Use semicolon-separator
Niklas Laxström [Sat, 15 Dec 2007 20:22:16 +0000 (20:22 +0000)]
* Cleaned up the code, and fixed the following bugs:
* (bug 12283) Special:Newpages forgets parameters
* (bug 12031) All namespaces doesn't work in Special:Newpages
Niklas Laxström [Sat, 15 Dec 2007 20:05:12 +0000 (20:05 +0000)]
* E_STRICT
Niklas Laxström [Sat, 15 Dec 2007 19:58:42 +0000 (19:58 +0000)]
* Typo in comment
Siebrand Mazeland [Sat, 15 Dec 2007 17:55:30 +0000 (17:55 +0000)]
Localisation updates from Betawiki.
* fr, fj (new), gd (new), hsb, nl, sdc
Leon Weber [Sat, 15 Dec 2007 16:28:38 +0000 (16:28 +0000)]
* (bug 11555) Make editsection links come after section seadlines. This has no visible effect to graphical browsers,
but fixes the issue that headlines look like "[edit] Headline" in text browsers.
Rotem Liss [Sat, 15 Dec 2007 14:35:15 +0000 (14:35 +0000)]
Adding xjt (to check the number of days in the Hebrew month), fixing methods order, cleaning up Hebrew calendar code and comments.
Rotem Liss [Sat, 15 Dec 2007 14:19:17 +0000 (14:19 +0000)]
Removing the link for clearing the watchlist.
Siebrand Mazeland [Sat, 15 Dec 2007 13:19:47 +0000 (13:19 +0000)]
* update RELEASE-NOTES
* set fallback for diq to tr
* update name for cbk-zam
Siebrand Mazeland [Sat, 15 Dec 2007 13:16:55 +0000 (13:16 +0000)]
Localisation updates from Betawiki.
* an, ar, ast, chr (new), crh-cyrl, crh-latn, cs, cy, diq (new), dsb, el, fr, hu, ja, lb, loz, lt, nl, no, qu, sah, sdc, su, tl, wo
Rotem Liss [Sat, 15 Dec 2007 12:39:50 +0000 (12:39 +0000)]
Update.
Shinjiman [Sat, 15 Dec 2007 11:10:02 +0000 (11:10 +0000)]
* housekeeping: marking 'image_sample' and 'media_sample' as optional
* Update Chinese translations
* Update Cantonese translations
Andrew Garrett [Sat, 15 Dec 2007 06:24:55 +0000 (06:24 +0000)]
* New special page: Special:Protectedtitles, which lists titles protected from creation.
* Requires schema change introduced in r28385, and perfected in later revisions.
Huji [Fri, 14 Dec 2007 19:18:12 +0000 (19:18 +0000)]
Improving the translation of some EXIF family messages.
Aryeh Gregor [Fri, 14 Dec 2007 19:14:12 +0000 (19:14 +0000)]
We want to be including MonoBook.php here, clearly, not Standard.php.
Siebrand Mazeland [Fri, 14 Dec 2007 11:02:43 +0000 (11:02 +0000)]
Localisation updates from Betawiki.
* an, ast, bg, ca, crh-cyrl, crh-latn, cs, cy, fr, hsb, hu, ja, kaa, la, lt, nl, oc, stq, sv, te, wuu, zh-hans
Huji [Fri, 14 Dec 2007 09:18:01 +0000 (09:18 +0000)]
Update
Huji [Fri, 14 Dec 2007 09:11:08 +0000 (09:11 +0000)]
Update
Tim Starling [Fri, 14 Dec 2007 06:53:15 +0000 (06:53 +0000)]
* Allow skins to be defined in extensions
* Removed some unused Skin member variables
* Use Monobook as a default if the skin doesn't exist, instead of classic/standard.
Shinjiman [Fri, 14 Dec 2007 04:38:37 +0000 (04:38 +0000)]
* Update Chinese translations
* Update Cantonese translations
* Update Old Chinese / Late Time Chinese translations
Siebrand Mazeland [Thu, 13 Dec 2007 23:54:07 +0000 (23:54 +0000)]
Fallback from kk-tr to kk-latn
Aaron Schulz [Thu, 13 Dec 2007 23:49:17 +0000 (23:49 +0000)]
* Add hidden input
* Extra validation
Aaron Schulz [Thu, 13 Dec 2007 23:47:52 +0000 (23:47 +0000)]
Put timestamp in revert url
Aryeh Gregor [Thu, 13 Dec 2007 23:35:34 +0000 (23:35 +0000)]
* (bug 10184) Extensions' stylesheets and scripts should be loaded before user-customized ones (like Common.css, Common.js). Tested a bunch of built-in scripts (AJAX watch, preferences) and some enwiki scripts and it all worked perfectly. Thanks to darklama/darkcode for pointing out the ludicrous bug in my previous commit that broke everything.
Niklas Laxström [Thu, 13 Dec 2007 21:40:47 +0000 (21:40 +0000)]
* Made a bit more reusable
Rotem Liss [Thu, 13 Dec 2007 18:37:57 +0000 (18:37 +0000)]
Update.
Greg Sabino Mullane [Thu, 13 Dec 2007 18:16:43 +0000 (18:16 +0000)]
Fix wgDBprefix name, remove backslashes, remove zerofill column stuff, fix spacing.
Victor Vasiliev [Thu, 13 Dec 2007 16:59:56 +0000 (16:59 +0000)]
* Don't suggest user to create page if he cannot
Shinjiman [Thu, 13 Dec 2007 04:43:59 +0000 (04:43 +0000)]
cleanup: removing comments that are repeated from the MessagesEn.php
Shinjiman [Thu, 13 Dec 2007 04:33:33 +0000 (04:33 +0000)]
* (bug 12287) Update Spanish translations
Provided by Titoxd
Shinjiman [Thu, 13 Dec 2007 04:25:21 +0000 (04:25 +0000)]
* (bug 12267) set the default date format for the Thai language into the Thai solar calender year format
Shinjiman [Thu, 13 Dec 2007 03:28:58 +0000 (03:28 +0000)]
* Update Chinese translations
* Update Cantonese translations
* Update Old Chinese / Late Time Chinese translations
Siebrand Mazeland [Wed, 12 Dec 2007 22:23:49 +0000 (22:23 +0000)]
Localisation updates from Betawiki.
* an, be, bg, ca, crh-cyrl, crh-latn, csb, dv, el, es, eu, fi, fr, frp, ga, gl, gsw, jv, li, loz, lv, mk, nl, nn, oc, pt-br, qu, sdc, sq, sr-el, stq, sv, te, tr, wa
Daniel Kinzler [Wed, 12 Dec 2007 21:53:06 +0000 (21:53 +0000)]
allow xsd extension for type application/xml
Aaron Schulz [Wed, 12 Dec 2007 19:47:05 +0000 (19:47 +0000)]
*Rename pt_by to pt_user to be a bit more consistent
*Remove pt_by index (no given or likely good use for it, re-add if there is one and say why)
Roan Kattouw [Wed, 12 Dec 2007 19:30:17 +0000 (19:30 +0000)]
API: Adding missing description for leprop parameter
Rotem Liss [Wed, 12 Dec 2007 17:45:51 +0000 (17:45 +0000)]
Update.
Raimond Spekking [Wed, 12 Dec 2007 07:46:14 +0000 (07:46 +0000)]
Remove contentsub "rclsub", it is useless because it is already in the page title
Siebrand Mazeland [Wed, 12 Dec 2007 07:44:08 +0000 (07:44 +0000)]
Localisation updates from Betawiki.
* an, ar, ast, crh-cyrl, crh-latn, cs, hsb, kn, li
Shinjiman [Wed, 12 Dec 2007 02:42:49 +0000 (02:42 +0000)]
wu language does not have plurals
Shinjiman [Wed, 12 Dec 2007 02:39:12 +0000 (02:39 +0000)]
Localisation updates from Betawiki.
* fr
Shinjiman [Wed, 12 Dec 2007 02:30:23 +0000 (02:30 +0000)]
* Update Chinese translations
* Update Cantonese translations
* Update Old Chinese / Late Time Chinese translations
Aaron Schulz [Tue, 11 Dec 2007 22:14:44 +0000 (22:14 +0000)]
There is a pass three now (may be a four in the future)...don't really like this duplication here
Aaron Schulz [Tue, 11 Dec 2007 22:10:44 +0000 (22:10 +0000)]
More title protection clean up. JS errors were being thrown calling the non-existent cascade checkbox. Also the chain box was showing for non-existent titles even though 'create' was the only available protection type.
Siebrand Mazeland [Tue, 11 Dec 2007 22:06:52 +0000 (22:06 +0000)]
Localisation updates from Betawiki.
* an, ast, be, crh-latn, frp, gl, ja, li, loz, nl, no, qu, ro, sdc, stq
Huji [Tue, 11 Dec 2007 22:02:52 +0000 (22:02 +0000)]
A more logical tabindex for the fields
Huji [Tue, 11 Dec 2007 20:49:18 +0000 (20:49 +0000)]
Adding missing translations for Fa + rebuildLanguage for both.
Aaron Schulz [Tue, 11 Dec 2007 20:18:49 +0000 (20:18 +0000)]
Fix casing, so that prefixed is actually used.
Raimond Spekking [Tue, 11 Dec 2007 17:00:12 +0000 (17:00 +0000)]
* (bug 11221) Do not show 'Compare selected versions' button for a history page with one revision only
* Use proper XML function
* Document a bit
Rotem Liss [Tue, 11 Dec 2007 16:57:15 +0000 (16:57 +0000)]
Update.
Raimond Spekking [Tue, 11 Dec 2007 16:45:28 +0000 (16:45 +0000)]
* Set proper page title for successful file deletion
Andrew Garrett [Tue, 11 Dec 2007 14:09:26 +0000 (14:09 +0000)]
Remove annoying `s from the definition of the protected_titles table.
Andrew Garrett [Tue, 11 Dec 2007 09:51:56 +0000 (09:51 +0000)]
* (bug 2919) Allow the protection of non-existent pages using the regular protection interface.
* WARNING: This revision requires a schema change, which is included in maintenance/archives/patch-protected_titles.sql, and can be applied in the normal manner (update.php).
Raimond Spekking [Tue, 11 Dec 2007 08:51:27 +0000 (08:51 +0000)]
* Updates German
Tim Starling [Tue, 11 Dec 2007 07:11:31 +0000 (07:11 +0000)]
Fix support for PPFrame with no title.
Roan Kattouw [Mon, 10 Dec 2007 16:45:01 +0000 (16:45 +0000)]
API:
* Replacing Title::newFromText() by Title::makeTitle(), which is more efficient
* Changing 'AtoZ' to 'ascending' throughout
Roan Kattouw [Mon, 10 Dec 2007 15:55:12 +0000 (15:55 +0000)]
API:
* Add list=allcategories module
* Fix token-related E_NOTICEs
Raimond Spekking [Mon, 10 Dec 2007 12:51:45 +0000 (12:51 +0000)]
* (bug 12257) Update some documentation files
Patch by Alexandre Emsenhuber
Anders Wegge Jakobsen [Mon, 10 Dec 2007 09:25:45 +0000 (09:25 +0000)]
Added/updated translations for da.
Tim Starling [Mon, 10 Dec 2007 06:02:29 +0000 (06:02 +0000)]
Add support for parse warnings. Currently only displayed on preview, but can be put in other places if desired.
Shinjiman [Mon, 10 Dec 2007 04:21:14 +0000 (04:21 +0000)]
the zh series message does not using plural
Aaron Schulz [Mon, 10 Dec 2007 03:17:24 +0000 (03:17 +0000)]
*Join on user table to get name. This allows for rc_user_text index use for pass 3
*Remove old unused vars
Shinjiman [Sun, 9 Dec 2007 23:49:03 +0000 (23:49 +0000)]
* (bug 12259) localize the numbers in deleted pages on the sysop view
Shinjiman [Sun, 9 Dec 2007 23:40:17 +0000 (23:40 +0000)]
* (bug 12145) Update Kazakh translations
Patch by AlefZet
Siebrand Mazeland [Sun, 9 Dec 2007 22:31:20 +0000 (22:31 +0000)]
Localisation updates from Betawiki.
* an, ast, be, br, cy, io, la, nl, ro, su, tet
Aaron Schulz [Sun, 9 Dec 2007 22:21:47 +0000 (22:21 +0000)]
Make this more efficient. Just get all bot users from user_groups and flag rows by them. Same for autopatrol users.