Niklas Laxström [Sat, 10 May 2008 11:21:16 +0000 (11:21 +0000)]
* Use addScriptFile
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
Niklas Laxström [Sat, 10 May 2008 11:00:19 +0000 (11:00 +0000)]
* typo
Shinjiman [Sat, 10 May 2008 10:53:56 +0000 (10:53 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
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
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.
Niklas Laxström [Sat, 10 May 2008 10:10:52 +0000 (10:10 +0000)]
* Use Xml:: functions and remove the huge warning about escaping
Niklas Laxström [Sat, 10 May 2008 09:52:51 +0000 (09:52 +0000)]
* Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries
Roan Kattouw [Sat, 10 May 2008 09:49:21 +0000 (09:49 +0000)]
E_NOTICE: $options['USE_INDEX'] might not be set
Niklas Laxström [Sat, 10 May 2008 09:48:03 +0000 (09:48 +0000)]
* Typo in comment
Niklas Laxström [Sat, 10 May 2008 09:40:26 +0000 (09:40 +0000)]
* Partly revert 34542, broke my section editing
Niklas Laxström [Sat, 10 May 2008 09:34:27 +0000 (09:34 +0000)]
* Use full path
Niklas Laxström [Sat, 10 May 2008 09:31:47 +0000 (09:31 +0000)]
* cy date formats..
Roan Kattouw [Sat, 10 May 2008 09:29:34 +0000 (09:29 +0000)]
Re-applying r34440 (documenting ApiQueryBase)
Niklas Laxström [Sat, 10 May 2008 09:21:37 +0000 (09:21 +0000)]
* Bah parse error...
Niklas Laxström [Sat, 10 May 2008 09:16:58 +0000 (09:16 +0000)]
* Some message tweaks
Aran Dunkley [Sat, 10 May 2008 07:16:13 +0000 (07:16 +0000)]
Functional but no indexes yet
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
Aran Dunkley [Sat, 10 May 2008 06:43:30 +0000 (06:43 +0000)]
remove doubled up statement
Aaron Schulz [Sat, 10 May 2008 00:48:07 +0000 (00:48 +0000)]
Add a way to do different JOINs with $tables
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! :)
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
Aran Dunkley [Fri, 9 May 2008 22:33:00 +0000 (22:33 +0000)]
tidy up generated tables.sql
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!
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
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!
Brion Vibber [Fri, 9 May 2008 20:24:06 +0000 (20:24 +0000)]
* Message name filter on Special:Allmessages now case-insensitive
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
Brion Vibber [Fri, 9 May 2008 20:02:12 +0000 (20:02 +0000)]
* (bug 14058) Support pipe trick for namespaces and interwikis with "-"
Alexandre Emsenhuber [Fri, 9 May 2008 19:48:32 +0000 (19:48 +0000)]
E_STRICT
Brion Vibber [Fri, 9 May 2008 18:53:54 +0000 (18:53 +0000)]
Ensure there's a newline at the end of the editing <textarea>, otherwise adding lines is awkward.
But don't add a newline if the ext is empty, or Firefox in XHTML mode will show an extra newline. A bit annoying, and drives me nuts while I'm testing. :D
Brion Vibber [Fri, 9 May 2008 18:40:52 +0000 (18:40 +0000)]
Wikify some image messages:
* linkstoimage
* nolinkstoimage
* redirectstofile
Two of these were previously raw-HTML paragraphs, and had div classes stuck on them on eg English Wikipedia.
r34507 changed them into plaintext, breaking them.
Since image pages are already swathed with little wiki bits (meta table, other various bits), shouldn't be any harm in making these properly flexible wiki messages.
Brion Vibber [Fri, 9 May 2008 18:00:15 +0000 (18:00 +0000)]
Revert to r34430 in order to revert r34431 which is breaking the site (unindexed filesorts)
Huji [Fri, 9 May 2008 16:49:32 +0000 (16:49 +0000)]
Fixing and old typo in Persian translations
Alexandre Emsenhuber [Fri, 9 May 2008 16:22:33 +0000 (16:22 +0000)]
* Added --online option to maintenance/findhooks.php to compare hooks with mediawiki.org/wiki/Manual:Hooks
* Renamed GetAvailableRights to UserGetAllRights in docs/hooks.txt
Roan Kattouw [Fri, 9 May 2008 14:44:32 +0000 (14:44 +0000)]
(bug 14021) Removing titles= support from list=backlinks, has been obsolete for ages (since July 2007)
Rotem Liss [Fri, 9 May 2008 14:32:28 +0000 (14:32 +0000)]
Several fixes.
Rotem Liss [Fri, 9 May 2008 14:16:59 +0000 (14:16 +0000)]
* Recreating the checkExtensions script, using data in the Translate extension, and using the existing interface of checkLanguage. The i18n.db file is now obsolete.
* Moving the CheckLanguageCLI class to checkLanguage.inc.
* Several fixes in checkLanguage script.
Aran Dunkley [Fri, 9 May 2008 12:13:27 +0000 (12:13 +0000)]
remove comment
Aran Dunkley [Fri, 9 May 2008 12:10:34 +0000 (12:10 +0000)]
rv oops disable mssql - not ready
Aran Dunkley [Fri, 9 May 2008 12:08:28 +0000 (12:08 +0000)]
keep schema in maintenance same as postgresql
Rotem Liss [Fri, 9 May 2008 11:54:58 +0000 (11:54 +0000)]
Rebuilding language files.
Huji [Fri, 9 May 2008 11:53:19 +0000 (11:53 +0000)]
* Adding/updating Persian translations
Rotem Liss [Fri, 9 May 2008 11:52:40 +0000 (11:52 +0000)]
Update.
Bryan Tong Minh [Fri, 9 May 2008 11:31:00 +0000 (11:31 +0000)]
* Show a link to [[Special:Whatlinkshere]] in case there are more imagelinks on ImagePage
* Cleanup ImagePage code
Huji [Fri, 9 May 2008 11:03:57 +0000 (11:03 +0000)]
* Adding/updating Persian translations
Bryan Tong Minh [Fri, 9 May 2008 10:42:49 +0000 (10:42 +0000)]
* Use getters where appropriate
* Fix following foreign file redirects again
Rotem Liss [Fri, 9 May 2008 10:30:23 +0000 (10:30 +0000)]
Update.
Bryan Tong Minh [Fri, 9 May 2008 10:07:03 +0000 (10:07 +0000)]
Disable debug statements which make the debug log totally unreadable.
Roan Kattouw [Fri, 9 May 2008 10:00:34 +0000 (10:00 +0000)]
(bug 14022) Added usprop=registration and auprop=blockinfo
Roan Kattouw [Fri, 9 May 2008 09:41:53 +0000 (09:41 +0000)]
(bug 14028) Added language attribute to interwiki map in meta=siteinfo
Raimond Spekking [Fri, 9 May 2008 08:17:28 +0000 (08:17 +0000)]
Localisation updates German
Huji [Fri, 9 May 2008 07:40:07 +0000 (07:40 +0000)]
* Adding/updating Persian translations
* Adding the newly added message to messages.inc
Aran Dunkley [Fri, 9 May 2008 05:37:01 +0000 (05:37 +0000)]
Preparing for MSSQL database support coming soon
Aran Dunkley [Fri, 9 May 2008 04:12:21 +0000 (04:12 +0000)]
Fix JS, can't access properties of non-existent objects
Brion Vibber [Thu, 8 May 2008 23:16:36 +0000 (23:16 +0000)]
* (bug 12644) Template list on edit page now sorted on preview
On initial edit, items were sorted by virtue of being pulled from a sorted table, but on preview they were displayed in rough order of use in parsing, which is a bit less legible.
Added Title::compare() static comparator available as a callback for usort(), using it in Linker::formatTemplates().
Bryan Tong Minh [Thu, 8 May 2008 21:53:39 +0000 (21:53 +0000)]
Show pages that redirect to this image on ImagePage
Siebrand Mazeland [Thu, 8 May 2008 21:37:11 +0000 (21:37 +0000)]
Localisation updates for core messages from Betawiki (2008-05-08 23:22 CEST)
Bryan Tong Minh [Thu, 8 May 2008 21:25:12 +0000 (21:25 +0000)]
So actually Article::followRedirect is used instead of Article::getRedirectTarget. Override this in ImagePage to make foreign image redirects work on image pages.
River Tarnell [Thu, 8 May 2008 21:13:14 +0000 (21:13 +0000)]
support imgserv for SVG rasterising
Bryan Tong Minh [Thu, 8 May 2008 20:55:13 +0000 (20:55 +0000)]
* Move image page redirect checking to ImagePage. Should now also work on foreign repos.
* Changed File::getRedirected to return a DBkey instead of a formatted text
Raimond Spekking [Thu, 8 May 2008 20:41:20 +0000 (20:41 +0000)]
Move heading to a more appropriate place, improves navigation for screenreader too.
Aaron Schulz [Thu, 8 May 2008 20:40:03 +0000 (20:40 +0000)]
Revert r34444, breaks submissions
Bryan Tong Minh [Thu, 8 May 2008 20:22:21 +0000 (20:22 +0000)]
Apparently r34458 was reported as bug 13546. Adding to release notes.
Bryan Tong Minh [Thu, 8 May 2008 20:15:09 +0000 (20:15 +0000)]
* Add new flag FIND_IGNORE_REDIRECT to wfFindFile and functions it depends on
* Follow redirects on image pages if the redirect is actually an image redirect
* Add comments to the check for redirect code in MediaWiki::initializeArticle so that I actually understand what it does
Brion Vibber [Thu, 8 May 2008 20:04:45 +0000 (20:04 +0000)]
* (bug 14047) Fix regression in installer which hid DB-specific options.
Also makes SQLite path configurable in the installer.
$wgSQLiteDataDir wasn't being initialized in DefaultSettings.php, potentially open to register_globals attacks. Now initialized to '', which gets interpreted as default.
Now adding only the options for the relevant DB to the generated LocalSettings.php
Brion Vibber [Thu, 8 May 2008 19:26:41 +0000 (19:26 +0000)]
Partial correctness fix; use lazy-loading $this->getTitle() instead of $this->mTitle in Revision::getPrevious() and Revision::getNext().
This will ensure they work even if the objects were fetched in a way that didn't initialize $this->mTitle... unless they aren't fully saved in the DB, in which case they'll still fail with a fatal error.
Shinjiman [Thu, 8 May 2008 17:20:45 +0000 (17:20 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Raimond Spekking [Thu, 8 May 2008 16:39:13 +0000 (16:39 +0000)]
Localisation updates German - oops. Thanks to Siebrand :)
Raimond Spekking [Thu, 8 May 2008 16:36:06 +0000 (16:36 +0000)]
Localisation updates German
Aryeh Gregor [Thu, 8 May 2008 16:19:01 +0000 (16:19 +0000)]
As Brion pointed out, this param is a boolean, and the existing code only works kind of by chance.
River Tarnell [Thu, 8 May 2008 16:06:21 +0000 (16:06 +0000)]
on SJS Web Server with action paths, 'action' is always set. this caused WatchlistEditor::getMode() to ignore $par when deciding if the user is editing the watchlist, so it would always consider the action to be view. fix by giving precedence to $par over action.
Rotem Liss [Thu, 8 May 2008 15:54:01 +0000 (15:54 +0000)]
Update.
Roan Kattouw [Thu, 8 May 2008 15:50:53 +0000 (15:50 +0000)]
(bug 14042) Calling Database::limitResult() misplaced the comment in the log file
Roan Kattouw [Thu, 8 May 2008 15:46:06 +0000 (15:46 +0000)]
Documenting some API stuff
Leon Weber [Thu, 8 May 2008 15:34:48 +0000 (15:34 +0000)]
Forgot the second comma...
Leon Weber [Thu, 8 May 2008 15:32:54 +0000 (15:32 +0000)]
German localisation fix: This is a relative clause which needs to be seperated from the main clause by a comma.
Robert Stojnić [Thu, 8 May 2008 15:16:48 +0000 (15:16 +0000)]
Delete mysqlism from message (as people complain on IRC that it doesn't apply
to wikimedia sites). Instead advertise functionality that applies to all
search backends. It might also be nice if we made this message backend
dependent.
Leon Weber [Thu, 8 May 2008 15:01:40 +0000 (15:01 +0000)]
(bug 14044) Don't increment page view counters on views from bot users
Alexandre Emsenhuber [Thu, 8 May 2008 14:14:28 +0000 (14:14 +0000)]
Fix XHTML error from r34401.
Roan Kattouw [Thu, 8 May 2008 12:33:20 +0000 (12:33 +0000)]
API:
* Added ApiQueryBase::addJoin() which provides a cleaner interface to construct JOIN queries. Behind the scenes this still uses the old, ugly way, but it'll be easy to rewrite when/if the Database class gets its own function for JOINs
* Used addJoin() in query modules where necessary
* Removed FORCE INDEX (rc_timestamp) from ApiQueryRecentchanges: it's nigh impossible to integrate with addJoin() and it doesn't seem to be necessary anyway (my MySQL instance automatically chooses rc_timestamp)
Daniel Friesen [Thu, 8 May 2008 11:03:03 +0000 (11:03 +0000)]
SMW also sends horrid statements containing DISTINCT and AS which suffer the same issue as the ugly API queries. Guess we have to secure against this use to.
Roan Kattouw [Thu, 8 May 2008 10:05:32 +0000 (10:05 +0000)]
Reverting r34388, DanTMan fixed Database::select() in r34442.
Daniel Friesen [Thu, 8 May 2008 09:29:48 +0000 (09:29 +0000)]
Ahh great. I mixed up my definition of preg_match's output and thought it was the one to return an offset, and false on failure.
Daniel Friesen [Thu, 8 May 2008 09:24:24 +0000 (09:24 +0000)]
Make tableName test for words like JOIN or ON which signal that we are actually looking at a SQL query thrown into the tableName because someone used the simple handlers in ways they really should not be.
Rotem Liss [Thu, 8 May 2008 06:31:15 +0000 (06:31 +0000)]
Update.
Brion Vibber [Thu, 8 May 2008 06:28:50 +0000 (06:28 +0000)]
* (bug 13615) Update case mappings and normalization to Unicode 5.1.0
Note that case mappings will only be used if mbstring extension is not present.
Normalization data files updated to Unicode 5.1.0; passes the automated tests.
Seem to have long since lost the script I originally used to generate the Utf8Case.php mapping file, which appears not to have been updated since 2002 or so. :)
Made a new one and moved it into the UtfNormal sub-library.
Note a couple limitations:
* Case mapping (still) uses only the 1:1 simple mappings. Any full or locale-specific mappings are ignored.
* These case mappings are not used anyway when the PHP mbstring extension is available; mbstring's case conversion functions are used instead, with whatever version of Unicode support and whatever complex mapping support they may or may not have.
* The generated Utf8Case.php file is not used directly -- you must also regenerate the serialized version in the 'serialized' directory after updating it to a new Unicode version.
Brion Vibber [Thu, 8 May 2008 05:34:48 +0000 (05:34 +0000)]
A bunch of Unicode constants got moved at some point out of the Unicode normalization library into core Defines.php, breaking the data file generation & testing.
Moved them out to a separate file in the library which can be cleanly included from both places for transparent happiness.
A fresh rebuild & test of UtfNormal data via 'make test' now works fine.
Aran Dunkley [Thu, 8 May 2008 00:24:20 +0000 (00:24 +0000)]
Remove backticks from table or db.table
Aryeh Gregor [Thu, 8 May 2008 00:11:43 +0000 (00:11 +0000)]
Update RELEASE-NOTES.
Aran Dunkley [Wed, 7 May 2008 23:43:17 +0000 (23:43 +0000)]
Add SQLite database class to autoloader
Aran Dunkley [Wed, 7 May 2008 23:40:14 +0000 (23:40 +0000)]
Add SQLite database class
Aran Dunkley [Wed, 7 May 2008 23:38:37 +0000 (23:38 +0000)]
Add SQLite database class
Raimond Spekking [Wed, 7 May 2008 21:16:06 +0000 (21:16 +0000)]
Tweak the explanation a bit
Rotem Liss [Wed, 7 May 2008 19:34:08 +0000 (19:34 +0000)]
Format the group rights list as a list.
Roan Kattouw [Wed, 7 May 2008 19:30:59 +0000 (19:30 +0000)]
(bug 14013) Added rcshow=patrolled to list=recentchanges
Rotem Liss [Wed, 7 May 2008 19:17:19 +0000 (19:17 +0000)]
This should probably be restricted to users with the 'hiderevision' right, as the 'suppress' right is only about viewing the suppression log and hidden users.
Roan Kattouw [Wed, 7 May 2008 19:15:06 +0000 (19:15 +0000)]
(bug 14018) Added alcontinue parameter to list=alllinks to improve paging; used to cause an infinite loop when a lot of links to the same title (e.g. [[Wiki]] on enwiki, more than 500 links) were listed. This basically adds the page ID to the continue value, making it unique. Also killed another useless ORDER BY pl_namespace
Shinjiman [Wed, 7 May 2008 19:09:36 +0000 (19:09 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Niklas Laxström [Wed, 7 May 2008 18:57:16 +0000 (18:57 +0000)]
* Don't pass the title object itself to Xml::hidden