lhc/web/wiklou.git
16 years agolog_id here too
Aaron Schulz [Tue, 13 May 2008 22:18:41 +0000 (22:18 +0000)]
log_id here too

16 years ago* Totally redo index use.
Aaron Schulz [Tue, 13 May 2008 22:17:54 +0000 (22:17 +0000)]
* Totally redo index use.
* log_id is live

16 years agoSilly typo
Aaron Schulz [Tue, 13 May 2008 21:31:30 +0000 (21:31 +0000)]
Silly typo

16 years agoDisable logevents until it works...
Brion Vibber [Tue, 13 May 2008 21:31:27 +0000 (21:31 +0000)]
Disable logevents until it works...

Currently produces very slow queries like the following:
SELECT /* ApiQueryLogEvents::execute SineBot */  log_type,log_action,log_timestamp,page_id,log_user,user_name,log_namespace,log_title,log_comment,log_params  FROM `user`,`logging` FORCE INDEX (times) LEFT JOIN `page` ON ((log_namespace=page_namespace) AND (log_title=page_title))  WHERE (log_type != 'suppress') AND (user_id=log_user) AND log_deleted = '0' AND log_type = 'block' AND log_namespace = '2' AND log_title = '86.53.69.150'  ORDER BY log_timestamp DESC LIMIT 2;

16 years agoLocalisation updates for core messages from Betawiki (2008-05-13 23:19 CEST)
Siebrand Mazeland [Tue, 13 May 2008 21:31:12 +0000 (21:31 +0000)]
Localisation updates for core messages from Betawiki (2008-05-13 23:19 CEST)

16 years agoUse 'api' querygroup
Aaron Schulz [Tue, 13 May 2008 21:04:24 +0000 (21:04 +0000)]
Use 'api' querygroup

16 years agoE_STRICT
Aaron Schulz [Tue, 13 May 2008 21:03:57 +0000 (21:03 +0000)]
E_STRICT

16 years agoActually, page not always selected. Add this only when needed.
Aaron Schulz [Tue, 13 May 2008 20:02:25 +0000 (20:02 +0000)]
Actually, page not always selected. Add this only when needed.

16 years agoActually specify page_id=rev_page to avoid cartesian join bringing the site down...
Aaron Schulz [Tue, 13 May 2008 19:58:12 +0000 (19:58 +0000)]
Actually specify page_id=rev_page to avoid cartesian join bringing the site down again

16 years agoLocalisation updates German
Raimond Spekking [Tue, 13 May 2008 19:05:13 +0000 (19:05 +0000)]
Localisation updates German

16 years agoUpdate.
Rotem Liss [Tue, 13 May 2008 19:04:50 +0000 (19:04 +0000)]
Update.

16 years ago* Localisation updates German
Raimond Spekking [Tue, 13 May 2008 19:02:32 +0000 (19:02 +0000)]
* Localisation updates German
* Update messages.inc per r34751

16 years agoCleanup r34661 (bug 14063 -- <label> for powersearch redirect checkbox)
Brion Vibber [Tue, 13 May 2008 18:59:18 +0000 (18:59 +0000)]
Cleanup r34661 (bug 14063 -- <label> for powersearch redirect checkbox)

Got rid of the old weird messages that combined localization with layout. Layout's now in nice clean code, with localization in nice clean messages. Yay!

16 years agoDo not add an empty class=''
Raimond Spekking [Tue, 13 May 2008 18:51:46 +0000 (18:51 +0000)]
Do not add an empty class=''

16 years ago* (bug 14111) Similar filename warning links now lead to correct page
Brion Vibber [Tue, 13 May 2008 17:40:56 +0000 (17:40 +0000)]
* (bug 14111) Similar filename warning links now lead to correct page
A title object was getting created without the Image namespace, so lead to wrong links when used in fileexists-extension warning message. For consistency, using target name with namespace in both spots on that message now as well.

16 years agoIf no current revision, cache as dead link
Aaron Schulz [Tue, 13 May 2008 16:06:31 +0000 (16:06 +0000)]
If no current revision, cache as dead link

16 years agoAdd CSS classes to allow easier hiding of elements.
Raimond Spekking [Tue, 13 May 2008 15:59:29 +0000 (15:59 +0000)]
Add CSS classes to allow easier hiding of elements.
Per request of the German screenreader project 'BIENE'

16 years agoOops
Roan Kattouw [Tue, 13 May 2008 14:56:51 +0000 (14:56 +0000)]
Oops

16 years agoActually this *should* be a LEFT JOIN, or we'll be dropping log entries
Roan Kattouw [Tue, 13 May 2008 14:41:35 +0000 (14:41 +0000)]
Actually this *should* be a LEFT JOIN, or we'll be dropping log entries

16 years agoForce the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects...
Roan Kattouw [Tue, 13 May 2008 14:01:40 +0000 (14:01 +0000)]
Force the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects the wrong index here (see bug 14102)

16 years agoRemove unused tableNamesN() call
Aaron Schulz [Tue, 13 May 2008 13:24:52 +0000 (13:24 +0000)]
Remove unused tableNamesN() call

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