lhc/web/wiklou.git
16 years agoLocalisation updates German
Raimond Spekking [Tue, 13 May 2008 11:28:07 +0000 (11:28 +0000)]
Localisation updates German

16 years ago$token is a parameter, so it's set by extractRequestParams()
Roan Kattouw [Tue, 13 May 2008 10:53:12 +0000 (10:53 +0000)]
$token is a parameter, so it's set by extractRequestParams()

16 years agoTechnical, behind-the-scenes changes with no user-observed change don't belong in...
Roan Kattouw [Tue, 13 May 2008 10:51:12 +0000 (10:51 +0000)]
Technical, behind-the-scenes changes with no user-observed change don't belong in RELEASE-NOTES

16 years agoApiQueryRevisions now uses the Revision backend. This allows a more proper handling...
Bryan Tong Minh [Tue, 13 May 2008 10:42:32 +0000 (10:42 +0000)]
ApiQueryRevisions now uses the Revision backend. This allows a more proper handling of rev_deleted. Also in case rev_size is filled on demand (bug 12188) there is only need to do this in one place.

16 years ago(bug 14012) prop=templates filesorts under some conditions
Roan Kattouw [Tue, 13 May 2008 10:39:01 +0000 (10:39 +0000)]
(bug 14012) prop=templates filesorts under some conditions

16 years agoMaking INNER JOIN implicit
Roan Kattouw [Tue, 13 May 2008 10:21:56 +0000 (10:21 +0000)]
Making INNER JOIN implicit

16 years ago(bug 13829) Expose parse tree via action=expandtemplates
Bryan Tong Minh [Tue, 13 May 2008 09:03:23 +0000 (09:03 +0000)]
(bug 13829) Expose parse tree via action=expandtemplates

16 years agoComment
Aaron Schulz [Tue, 13 May 2008 06:39:55 +0000 (06:39 +0000)]
Comment

16 years ago* Lets fix the other one too :)
Niklas Laxström [Tue, 13 May 2008 06:20:03 +0000 (06:20 +0000)]
* Lets fix the other one too :)

16 years agoUtilize r34708 tweak. Various performance tweaks. For results in one non-main namespa...
Aaron Schulz [Tue, 13 May 2008 05:54:23 +0000 (05:54 +0000)]
Utilize r34708 tweak. Various performance tweaks. For results in one non-main namespace, use the new_name_timestamp index so it doesn't take 50 seconds doing "anon edits in NS_MEDIAWIKI"

16 years agoRemove obsolete commen
Aran Dunkley [Tue, 13 May 2008 05:11:33 +0000 (05:11 +0000)]
Remove obsolete commen

16 years agoSplit of query from query text generation. This makes creating sql statements for...
Aaron Schulz [Tue, 13 May 2008 04:56:14 +0000 (04:56 +0000)]
Split of query from query text generation. This makes creating sql statements for UNIONs much easier.

16 years agoINNER JOIN
Aaron Schulz [Tue, 13 May 2008 04:29:54 +0000 (04:29 +0000)]
INNER JOIN

16 years ago* Fix undefined variable error
Aaron Schulz [Tue, 13 May 2008 03:59:42 +0000 (03:59 +0000)]
* Fix undefined variable error
* Clean up query stuff

16 years agooops, interwiki inserts were commented out
Aran Dunkley [Tue, 13 May 2008 00:03:05 +0000 (00:03 +0000)]
oops, interwiki inserts were commented out

16 years agoremove licence etc to make same as the other DB includes
Aran Dunkley [Tue, 13 May 2008 00:01:00 +0000 (00:01 +0000)]
remove licence etc to make same as the other DB includes

16 years agoremove licence etc to make same as the other DB includes
Aran Dunkley [Mon, 12 May 2008 23:59:06 +0000 (23:59 +0000)]
remove licence etc to make same as the other DB includes

16 years agoRevert r34619, r34622 and do it right. :)
Brion Vibber [Mon, 12 May 2008 23:46:42 +0000 (23:46 +0000)]
Revert r34619, r34622 and do it right. :)

* $extensionsList is a local variable, not a global, so there is no actual register_globals danger -- just annoying E_NOTICE spam.
* Setting $extensionList won't help with warnings about unset $extensionsList ;)
* Cleaner to set it in the fallback case near where it's set otherwise, rather than at the top of the function far, far away from its use

16 years agoRevert r34559 and fix r34542 -- include rightclickedit.js for 'edit on right click...
Brion Vibber [Mon, 12 May 2008 23:37:51 +0000 (23:37 +0000)]
Revert r34559 and fix r34542 -- include rightclickedit.js for 'edit on right click' pref, must have forgot to finish it up before commit :D

16 years agoRevert r34585: "Normalise also special page names (in addition to namespace)"
Brion Vibber [Mon, 12 May 2008 23:09:30 +0000 (23:09 +0000)]
Revert r34585: "Normalise also special page names (in addition to namespace)"
Unclear what it's meant to accomplish, but it appears to break at least the AJAX search on special page list. Unable to get it to jump through the list properly, probably due to being impossible to work with a Title object with an arbitrary name, so it's impossible to jump partway into the list.

16 years agoapply live hacks from wikimedia site:
Brion Vibber [Mon, 12 May 2008 22:01:44 +0000 (22:01 +0000)]
apply live hacks from wikimedia site:
* fix $wgDBadminuser/pass usage with new load balancer
* some test.wikipedia check... yay hardcoded crap :D
* hardcoded wikimedia PMTPA check, yay

16 years agoPartial revert of r12145. Bug 12145 Kazakh message updates did not mention/motivate...
Siebrand Mazeland [Mon, 12 May 2008 21:13:09 +0000 (21:13 +0000)]
Partial revert of r12145. Bug 12145 Kazakh message updates did not mention/motivate these changes.

16 years agoLocalisation updates for core messages from Betawiki (2008-05-12 22:45 CEST)
Siebrand Mazeland [Mon, 12 May 2008 20:55:47 +0000 (20:55 +0000)]
Localisation updates for core messages from Betawiki (2008-05-12 22:45 CEST)

16 years ago(bug 12145) Kazakh message updates
Alexandre Emsenhuber [Mon, 12 May 2008 20:30:57 +0000 (20:30 +0000)]
(bug 12145) Kazakh message updates

16 years agoAdd a link to viewvc
Bryan Tong Minh [Mon, 12 May 2008 17:47:51 +0000 (17:47 +0000)]
Add a link to viewvc

16 years ago(bug 12145) Kazakh localisation updates. Patch 4894 by AlefZet
Leon Weber [Mon, 12 May 2008 15:44:12 +0000 (15:44 +0000)]
(bug 12145) Kazakh localisation updates. Patch 4894 by AlefZet

16 years ago* Adding/updating Persian translations
Huji [Mon, 12 May 2008 15:37:33 +0000 (15:37 +0000)]
* Adding/updating Persian translations

16 years agoUpdate.
Rotem Liss [Mon, 12 May 2008 14:39:06 +0000 (14:39 +0000)]
Update.

16 years ago(bug 14063) Power search form missing <label> for redirects check
Huji [Mon, 12 May 2008 14:28:09 +0000 (14:28 +0000)]
(bug 14063) Power search form missing <label> for redirects check

16 years ago(bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation
Bryan Tong Minh [Mon, 12 May 2008 14:12:51 +0000 (14:12 +0000)]
(bug 14093) Do 'sysop' => 'protect' magic in Title::isValidMoveOperation

16 years agoTweaks to Special:ListGroupRights:
Aryeh Gregor [Mon, 12 May 2008 13:56:21 +0000 (13:56 +0000)]
Tweaks to Special:ListGroupRights:
* Have the internally-used permission key in parentheses after the descriptive text, since a primary purpose of the page is for sysadmins' convenience.
* Make sure to use the word "rollback" in rollback-related messages -- that's the name of the button, after all.
* Adjust the wording of a couple of other messages so they sound better or are clearer.

16 years ago* Add user_text index to filearchives (for renames at least)
Aaron Schulz [Mon, 12 May 2008 04:35:08 +0000 (04:35 +0000)]
* Add user_text index to filearchives (for renames at least)
* Remove useless, incomplete, deleted_user index

16 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Mon, 12 May 2008 02:08:14 +0000 (02:08 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

16 years ago* Forget the offset in the form also
Niklas Laxström [Sun, 11 May 2008 21:55:43 +0000 (21:55 +0000)]
* Forget the offset in the form also

16 years ago* Code cleanup
Niklas Laxström [Sun, 11 May 2008 21:43:16 +0000 (21:43 +0000)]
* Code cleanup

16 years agoRefactor SpecialEmailUser.php to split outputting from other stuff so that a to be...
Bryan Tong Minh [Sun, 11 May 2008 21:07:33 +0000 (21:07 +0000)]
Refactor SpecialEmailUser.php to split outputting from other stuff so that a to be written API module can easily use the existing code.

16 years agoLocalisation updates for core messages from Betawiki (2008-05-11 22:57 CEST)
Siebrand Mazeland [Sun, 11 May 2008 21:02:26 +0000 (21:02 +0000)]
Localisation updates for core messages from Betawiki (2008-05-11 22:57 CEST)

16 years agoRefactor duplicated code into one area.
Greg Sabino Mullane [Sun, 11 May 2008 20:39:43 +0000 (20:39 +0000)]
Refactor duplicated code into one area.
Remove unneeded parens in regexes, don't set matches array if not needed.
Add warning about odd gmmktime() behavior.

16 years agoTweak doc
Aaron Schulz [Sun, 11 May 2008 20:24:15 +0000 (20:24 +0000)]
Tweak doc

16 years agoGAID_FOR_UPDATE
Aaron Schulz [Sun, 11 May 2008 20:22:49 +0000 (20:22 +0000)]
GAID_FOR_UPDATE

16 years agoClean up date formatting per bug 14067, remove assumptions that things like
Greg Sabino Mullane [Sun, 11 May 2008 20:22:25 +0000 (20:22 +0000)]
Clean up date formatting per bug 14067, remove assumptions that things like
20051300000000 will work. It's fine for dates-as-integers, but goes horribly
wrong when fed to $dbr->timestamp(), which calls gmmktime(). The latter function
has a bug/feature causing any 0s in the month or day field to cause a month
or day's *subtraction*. We might want to modify timestamp() to handle that, as
I can imagine any MW code would want to rely on such a feature, but that's not
this patch.

Also set a limit for Y2K38 problems, as gmmktime() doesn't like that very much either.

16 years agoPut code to view redirect page in new method Article::viewRedirect in order to allow...
Bryan Tong Minh [Sun, 11 May 2008 19:49:08 +0000 (19:49 +0000)]
Put code to view redirect page in new method Article::viewRedirect in order to allow displaying redirects on foreign file repos.

16 years agoAvoid possible register_globals issue.
Robert Leverington [Sun, 11 May 2008 17:31:38 +0000 (17:31 +0000)]
Avoid possible register_globals issue.

16 years agoRemove paramter that only appears to illustrate the fact more parameters can be added...
Robert Leverington [Sun, 11 May 2008 17:21:10 +0000 (17:21 +0000)]
Remove paramter that only appears to illustrate the fact more parameters can be added and causes an E_STRICT level error.

16 years agoNotice: Undefined variable: extensionsList in includes/SpecialUpload.php on line...
Robert Leverington [Sun, 11 May 2008 17:15:15 +0000 (17:15 +0000)]
Notice:  Undefined variable: extensionsList in includes/SpecialUpload.php on line 1081

16 years ago* Adding/updating Persian translations
Huji [Sun, 11 May 2008 16:12:36 +0000 (16:12 +0000)]
* Adding/updating Persian translations

16 years agoConsistent type
Aaron Schulz [Sun, 11 May 2008 14:54:45 +0000 (14:54 +0000)]
Consistent type

16 years agopages can render, but many operations break it
Aran Dunkley [Sun, 11 May 2008 11:23:52 +0000 (11:23 +0000)]
pages can render, but many operations break it

16 years agoreplace with newly generated version
Aran Dunkley [Sun, 11 May 2008 06:12:07 +0000 (06:12 +0000)]
replace with newly generated version

16 years agoadd some dev notes and other info
Aran Dunkley [Sun, 11 May 2008 02:20:19 +0000 (02:20 +0000)]
add some dev notes and other info

16 years agoAdd $flags
Aaron Schulz [Sat, 10 May 2008 23:31:52 +0000 (23:31 +0000)]
Add $flags

16 years agogets thru installation procedure but fails on article access
Aran Dunkley [Sat, 10 May 2008 22:52:20 +0000 (22:52 +0000)]
gets thru installation procedure but fails on article access

16 years agoLocalisation updates. Rebuilt all language files, removing obsolete messages
Siebrand Mazeland [Sat, 10 May 2008 20:48:53 +0000 (20:48 +0000)]
Localisation updates. Rebuilt all language files, removing obsolete messages

16 years agoFix typo
Siebrand Mazeland [Sat, 10 May 2008 20:48:08 +0000 (20:48 +0000)]
Fix typo

16 years agoLocalisation updates for core messages from Betawiki (2008-05-08 22:30 CEST)
Siebrand Mazeland [Sat, 10 May 2008 20:43:23 +0000 (20:43 +0000)]
Localisation updates for core messages from Betawiki (2008-05-08 22:30 CEST)

16 years ago* Fix image redirect caching so it doesn't break image redirects on shared repositories
Victor Vasiliev [Sat, 10 May 2008 19:22:14 +0000 (19:22 +0000)]
* Fix image redirect caching so it doesn't break image redirects on shared repositories

16 years agoFix for bug 13677
Ryan Schmidt [Sat, 10 May 2008 18:31:05 +0000 (18:31 +0000)]
Fix for bug 13677

16 years agoE_STRICT
Alexandre Emsenhuber [Sat, 10 May 2008 17:41:17 +0000 (17:41 +0000)]
E_STRICT

16 years ago* Adding/updating Persian translations
Huji [Sat, 10 May 2008 17:29:21 +0000 (17:29 +0000)]
* Adding/updating Persian translations
* Rebuilding MessagesFa and MessagesEn

16 years ago(bug 12145) Kazakh localisation updates, patch 4893 by AlefZet
Leon Weber [Sat, 10 May 2008 16:41:35 +0000 (16:41 +0000)]
(bug 12145) Kazakh localisation updates, patch 4893 by AlefZet

16 years agoFor compatibility (DefaultSettings.php currently crashes when LocalSettings.php doesn...
Rotem Liss [Sat, 10 May 2008 16:29:19 +0000 (16:29 +0000)]
For compatibility (DefaultSettings.php currently crashes when LocalSettings.php doesn't exist).

16 years agoFixing grammar in error message
Roan Kattouw [Sat, 10 May 2008 16:25:49 +0000 (16:25 +0000)]
Fixing grammar in error message

16 years ago* Normalise also special page names (in addition to namespace)
Niklas Laxström [Sat, 10 May 2008 15:14:39 +0000 (15:14 +0000)]
* Normalise also special page names (in addition to namespace)

16 years agoDon't call wfFindFile twice when it's not necessary.
Bryan Tong Minh [Sat, 10 May 2008 14:19:25 +0000 (14:19 +0000)]
Don't call wfFindFile twice when it's not necessary.

16 years agoUpdate.
Rotem Liss [Sat, 10 May 2008 13:58:55 +0000 (13:58 +0000)]
Update.

16 years ago* Consistent case and autoloader
Niklas Laxström [Sat, 10 May 2008 13:46:05 +0000 (13:46 +0000)]
* Consistent case and autoloader

16 years ago* Added code two commonly needed use cases: separate label and input, and select
Niklas Laxström [Sat, 10 May 2008 13:44:25 +0000 (13:44 +0000)]
* Added code two commonly needed use cases: separate label and input, and select

16 years agoJust use @ here too
Aaron Schulz [Sat, 10 May 2008 13:42:07 +0000 (13:42 +0000)]
Just use @ here too

16 years agoPass in $join_conds
Aaron Schulz [Sat, 10 May 2008 13:38:07 +0000 (13:38 +0000)]
Pass in $join_conds

16 years ago* Use local cache as well, this might be called a lot in certain circumstances
Niklas Laxström [Sat, 10 May 2008 12:55:59 +0000 (12:55 +0000)]
* Use local cache as well, this might be called a lot in certain circumstances

16 years agoChange binary's to varchar's and allow NULL's
Aran Dunkley [Sat, 10 May 2008 12:17:45 +0000 (12:17 +0000)]
Change binary's to varchar's and allow NULL's

16 years ago* Use Xml:: and so
Niklas Laxström [Sat, 10 May 2008 11:56:02 +0000 (11:56 +0000)]
* Use Xml:: and so

16 years ago* Use addScriptFile
Niklas Laxström [Sat, 10 May 2008 11:21:16 +0000 (11:21 +0000)]
* Use addScriptFile

16 years ago(bug 13943) Fix image redirect behaviour on image pages:
Bryan Tong Minh [Sat, 10 May 2008 11:12:53 +0000 (11:12 +0000)]
(bug 13943) Fix image redirect behaviour on image pages:
* Confused redirect source with target
* Don't check for article existence if the target is a foreign image page

16 years ago* typo
Niklas Laxström [Sat, 10 May 2008 11:00:19 +0000 (11:00 +0000)]
* typo

16 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Sat, 10 May 2008 10:53:56 +0000 (10:53 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

16 years ago* Re-applying r34449, r34500 and r34518 which Brion reverted by accident
Roan Kattouw [Sat, 10 May 2008 10:49:26 +0000 (10:49 +0000)]
* Re-applying r34449, r34500 and r34518 which Brion reverted by accident
* Adding ApiQueryBase::addJoinConds() as wrapper for Database::select()'s $join_conds parameter
* Migrating query modules to addJoinConds()
* Using implicit join rather than INNER JOIN in ApiQueryBacklinks
* Using FORCE INDEX (times) on logging table in ApiQueryLogEvents; although MySQL 4 seems to pick this index automatically (evidenced by the fact the WMF servers are still alive), MySQL 5 doesn't and filesorts
* Replacing LEFT JOIN with implicit (inner) join in ApiQueryContributions: revisions without a corresponding page table entry shouldn't be shown anyway

16 years agoAllow an array as ON clause. There are quite a few queries out there that JOIN on...
Roan Kattouw [Sat, 10 May 2008 10:31:57 +0000 (10:31 +0000)]
Allow an array as ON clause. There are quite a few queries out there that JOIN on title and namespace.

16 years ago* Use Xml:: functions and remove the huge warning about escaping
Niklas Laxström [Sat, 10 May 2008 10:10:52 +0000 (10:10 +0000)]
* Use Xml:: functions and remove the huge warning about escaping

16 years ago* Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries
Niklas Laxström [Sat, 10 May 2008 09:52:51 +0000 (09:52 +0000)]
* Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries

16 years agoE_NOTICE: $options['USE_INDEX'] might not be set
Roan Kattouw [Sat, 10 May 2008 09:49:21 +0000 (09:49 +0000)]
E_NOTICE: $options['USE_INDEX'] might not be set

16 years ago* Typo in comment
Niklas Laxström [Sat, 10 May 2008 09:48:03 +0000 (09:48 +0000)]
* Typo in comment

16 years ago* Partly revert 34542, broke my section editing
Niklas Laxström [Sat, 10 May 2008 09:40:26 +0000 (09:40 +0000)]
* Partly revert 34542, broke my section editing

16 years ago* Use full path
Niklas Laxström [Sat, 10 May 2008 09:34:27 +0000 (09:34 +0000)]
* Use full path

16 years ago* cy date formats..
Niklas Laxström [Sat, 10 May 2008 09:31:47 +0000 (09:31 +0000)]
* cy date formats..

16 years agoRe-applying r34440 (documenting ApiQueryBase)
Roan Kattouw [Sat, 10 May 2008 09:29:34 +0000 (09:29 +0000)]
Re-applying r34440 (documenting ApiQueryBase)

16 years ago* Bah parse error...
Niklas Laxström [Sat, 10 May 2008 09:21:37 +0000 (09:21 +0000)]
* Bah parse error...

16 years ago* Some message tweaks
Niklas Laxström [Sat, 10 May 2008 09:16:58 +0000 (09:16 +0000)]
* Some message tweaks

16 years agoFunctional but no indexes yet
Aran Dunkley [Sat, 10 May 2008 07:16:13 +0000 (07:16 +0000)]
Functional but no indexes yet

16 years agoCould someone please check this - I may be wrong but it looks like the table-prefix...
Aran Dunkley [Sat, 10 May 2008 07:04:15 +0000 (07:04 +0000)]
Could someone please check this - I may be wrong but it looks like the table-prefix is needed here

16 years agoremove doubled up statement
Aran Dunkley [Sat, 10 May 2008 06:43:30 +0000 (06:43 +0000)]
remove doubled up statement

16 years agoAdd a way to do different JOINs with $tables
Aaron Schulz [Sat, 10 May 2008 00:48:07 +0000 (00:48 +0000)]
Add a way to do different JOINs with $tables

16 years agoRevert r34541 for the moment pending further review & discussion...
Brion Vibber [Fri, 9 May 2008 23:52:04 +0000 (23:52 +0000)]
Revert r34541 for the moment pending further review & discussion...
There's some kind of crazy magic_quotes stuff in here which screams RED ALERT, something's weird going on! :)

16 years agoFixing up a variety of GlobalFunctions and also improving queries in Titke.php.
Daniel Friesen [Fri, 9 May 2008 23:36:21 +0000 (23:36 +0000)]
Fixing up a variety of GlobalFunctions and also improving queries in Titke.php.
* getFullURL and getLocalUrl now accept arrays and objects as valid input.
* Use wfAppendQuery in getLocalUrl to match up with getFullURL.
* wfArrayToCgi is now a alias to wfBuildQuery (Parameters are in the OPPOSITE order so wfBuildQuery takes defaults as second param and wfArrayToCgi takes them as first parameter like it always did)
* New function wfBuildQuery.
** The code moved here from what once was wfArrayToCgi has been changed from a set of plain loops to a wrapper around http_build_query so that complex data is handled correctly.
** We now support strings and objects as input, and we even parse strings when necessary to merge queries.
* New function wfForeignWikiID to pair with wfWikiID like wfForeignMemcKey. The foreign id can take 2 parameters, if omitted it falls back to the shared db, then to the local db if not set.
* wfMemcKey and wfForeignMemcKey now call the respective wf(Foreign)WikiID function, this simplifies the functions, and avoids code duplication making sure things always match even if for some strange reason it's changed.

I'll likely be using the forign functions later to improve the use of a shared interwiki map to avoid redundant caches.

I could always make the local MemcKey and WikiID functions depend on the foreign ones in a sane way

16 years agotidy up generated tables.sql
Aran Dunkley [Fri, 9 May 2008 22:33:00 +0000 (22:33 +0000)]
tidy up generated tables.sql

16 years agoThe Horrible Twin for r28127. The call happens when content is fetched from
Robert Stojnić [Fri, 9 May 2008 22:21:37 +0000 (22:21 +0000)]
The Horrible Twin for r28127. The call happens when content is fetched from
parser cache, and the title needs converting. A consequence of returning ''
is bad regexp that produces odd conversion behavior for titles reported on
various occasions.

One of these days, I'm just going to completely rewrite this thing, I swear!

16 years agoPluck a few more KB of crap out of wikibits.js -- break out prefs.js for Special...
Brion Vibber [Fri, 9 May 2008 20:59:08 +0000 (20:59 +0000)]
Pluck a few more KB of crap out of wikibits.js -- break out prefs.js for Special:Preferences

16 years agoSplit page history radio button tweaks out from wikibits.js to history.js
Brion Vibber [Fri, 9 May 2008 20:51:32 +0000 (20:51 +0000)]
Split page history radio button tweaks out from wikibits.js to history.js
Only include it when it's needed -- don't force it on every reader!

16 years ago* Message name filter on Special:Allmessages now case-insensitive
Brion Vibber [Fri, 9 May 2008 20:24:06 +0000 (20:24 +0000)]
* Message name filter on Special:Allmessages now case-insensitive

16 years ago* add OutputPage::addScriptFile() for easier adding of JS files, similar to OutputPag...
Brion Vibber [Fri, 9 May 2008 20:18:35 +0000 (20:18 +0000)]
* add OutputPage::addScriptFile() for easier adding of JS files, similar to OutputPage::addStyle()
* broke Special:Allmessages-specific JS out of wikibits.js to allmessages.js