Brion Vibber [Wed, 31 Dec 2008 21:12:01 +0000 (21:12 +0000)]
Revert r45165 "Pretty up WLH form slightly"
'Linked to this page instead' is even less comprehensible to me than 'Show changes to pages linked to the given page instead'
Siebrand Mazeland [Wed, 31 Dec 2008 21:09:15 +0000 (21:09 +0000)]
Follow up on incomplete r45250
Brion Vibber [Wed, 31 Dec 2008 21:05:21 +0000 (21:05 +0000)]
Revert r45160 "(bug 11330) Passing default to Request->getInt() is good enough, rather than added code to do the same thing"
This rev changes the behavior, forcing $smaxage to $wgSquidMaxage in cases where we would have previously ended up with $wgForcedRawSMaxage or 0.
Brion Vibber [Wed, 31 Dec 2008 20:46:21 +0000 (20:46 +0000)]
Follow-up to r45158
* Rename 'ellipsis-separator' to just 'ellipsis'. Clearer, since it's not really a separator ;) and shorter so people will be more likely to use it!
* Use wfMsgForContent() in MWSearch, since we're using it in the context of page content the ellipsis should match content language.
Brion Vibber [Wed, 31 Dec 2008 20:30:01 +0000 (20:30 +0000)]
Revert r45154 "* sysop -> administrator for consistency"
Let's not go changing core terminology around without making sure there's general agreement
Jack Phoenix [Wed, 31 Dec 2008 19:30:59 +0000 (19:30 +0000)]
check that $wgArticle is an instance of the Article class in Skin::pageStats() per Brion's commit summary on r45204
Brion Vibber [Wed, 31 Dec 2008 19:16:37 +0000 (19:16 +0000)]
Revert r45106 "(bug 16617) Add "talk" link to list of templates in edit mode"
Clutters the interface unnecessarily, and uses link texts which don't even match in formatting, making it very unattractive.
Rotem Liss [Wed, 31 Dec 2008 19:07:53 +0000 (19:07 +0000)]
Localization update.
Rotem Liss [Wed, 31 Dec 2008 19:07:08 +0000 (19:07 +0000)]
Localization update.
Siebrand Mazeland [Wed, 31 Dec 2008 19:06:50 +0000 (19:06 +0000)]
Remove leftover from Interwiki extension merge
Rotem Liss [Wed, 31 Dec 2008 19:04:54 +0000 (19:04 +0000)]
Localization: Removing right and action messages for the 'restrict' feature, which was reverted.
Brion Vibber [Wed, 31 Dec 2008 18:56:16 +0000 (18:56 +0000)]
Revert r45231, r45235 "* (bug 674) Allow users to be blocked from editing a specific article"
Unexpected schema changes in the middle of code review and run-up to 1.14 freeze
Aaron Schulz [Wed, 31 Dec 2008 18:51:48 +0000 (18:51 +0000)]
Remove ur_user index. We can just use the user_namespace to load all blocked namespaces, and the user_page index to to lookup for titles as needed
Siebrand Mazeland [Wed, 31 Dec 2008 18:44:54 +0000 (18:44 +0000)]
* Revert r45062 and related (Merge Interwiki extension to core) per brion.
* Merge changes made to Special:Interwiki after merge to core back into extension (messages will follow within 24 hours)
Victor Vasiliev [Wed, 31 Dec 2008 18:37:34 +0000 (18:37 +0000)]
Fix typo
Victor Vasiliev [Wed, 31 Dec 2008 18:10:50 +0000 (18:10 +0000)]
* Fix up schema per Brion's notes
Victor Vasiliev [Wed, 31 Dec 2008 17:57:20 +0000 (17:57 +0000)]
* Fix some messages, per Siebrand
Brion Vibber [Wed, 31 Dec 2008 17:56:04 +0000 (17:56 +0000)]
Revert r45063 "Move doNothing return check above global declarations"
Change makes the code harder to read by hiding a control statement in the middle of a global declaraction chunk.
Brion Vibber [Wed, 31 Dec 2008 17:47:20 +0000 (17:47 +0000)]
Disable Special:Interwiki until it works and isn't so scary-looking
Victor Vasiliev [Wed, 31 Dec 2008 17:25:47 +0000 (17:25 +0000)]
* (bug 674) Allow users to be blocked from editing a specific article
** Also supports blocking user from editing whole namespace
** Fixed most issues which were found before
Brion Vibber [Wed, 31 Dec 2008 17:25:08 +0000 (17:25 +0000)]
Reverting r45058 "(bug 15430) Cancel the upload process and rollback database changes in case no article associated with the file can be created"
Article::doEdit() opens and commits transactions of its own, so the transaction we started earlier will already be committed and cannot be rolled back at this point unless one of two particular failure modes hits (ArticleSave hook aborts or mLatest isn't set). A more general fix needs to be devised...
Siebrand Mazeland [Wed, 31 Dec 2008 17:20:26 +0000 (17:20 +0000)]
Partial re-introduction of r45027 after being reverted in r45228
* Added the colon in summary, subject and subject-preview messages rather than using colon-separator
Brion Vibber [Wed, 31 Dec 2008 17:10:02 +0000 (17:10 +0000)]
Revert r45027, r45028 "* summary and subject messages now uses wiki text rather than raw HTML"
Changing the format of existing messages is disruptive, which is why we don't do it as a rule -- we introduce new messages that replace the old ones.
Brion Vibber [Wed, 31 Dec 2008 17:02:23 +0000 (17:02 +0000)]
Revert r45189 "Escape entities in h1 title html" -- double-escaping
Brion Vibber [Wed, 31 Dec 2008 16:49:38 +0000 (16:49 +0000)]
Pull back r45181 "(Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com)" for now.
Escaping issues per comment http://www.mediawiki.org/wiki/Special:Code/MediaWiki/45181#c1046
Siebrand Mazeland [Wed, 31 Dec 2008 15:23:11 +0000 (15:23 +0000)]
Special page aliases for 'Interwiki' taken from extensions/Interwiki/Interwiki.alias.php
Robert Stojnić [Wed, 31 Dec 2008 04:48:23 +0000 (04:48 +0000)]
Backport r45215 to old search ui and move search engine creation before page setup so we can do the setup properly.
Robert Stojnić [Wed, 31 Dec 2008 03:33:08 +0000 (03:33 +0000)]
Pair to previous commit: handle the 'prefix' param - the default backend will just save it into variable and ignore it.
Siebrand Mazeland [Tue, 30 Dec 2008 23:55:11 +0000 (23:55 +0000)]
Localisation updates for core messages from Betawiki (2008-12-31 00:24 CET)
Siebrand Mazeland [Tue, 30 Dec 2008 23:34:35 +0000 (23:34 +0000)]
Add missing messages
Danny B [Tue, 30 Dec 2008 22:51:05 +0000 (22:51 +0000)]
* handle the "o" format character for PHP 5.1.0+, older versions need emulation
Brion Vibber [Tue, 30 Dec 2008 21:43:54 +0000 (21:43 +0000)]
Accept 'utf8' flag in place of 'utf-8' to compensate for entries broken by bug 16841 in recompressTracked.php stuff
Aaron Schulz [Tue, 30 Dec 2008 21:36:47 +0000 (21:36 +0000)]
(bug 16841) Fix typo (utf8 -> utf-8)
Brion Vibber [Tue, 30 Dec 2008 21:34:25 +0000 (21:34 +0000)]
Revert r45038 "only call pageStats function in Skin::printFooter if $wgArticle is an object. this might not always be the case (tested with a custom skin extending the Skin class) and if so, a fatal error is shown on the page (tested with Special: pages) and footer won't be rendered"
Skin::pageStats() has checks meant to catch this already. If they're faulty, fix them there.
Aryeh Gregor [Tue, 30 Dec 2008 20:34:19 +0000 (20:34 +0000)]
Fix PHP notice
It would seem like something is passing empty strings to
Sanitizer::escapeId(). A more explicit check for this might be useful,
but this should avoid the notice.
Victor Vasiliev [Tue, 30 Dec 2008 20:31:25 +0000 (20:31 +0000)]
Didn't suppose to commit it
Victor Vasiliev [Tue, 30 Dec 2008 19:02:51 +0000 (19:02 +0000)]
* Enable image moving by default. All known serious issues seem to be fixed.
* Create "movefile" permission
* Restrict image moving to sysops till we are absolutely sure it works correctly.
Brion Vibber [Tue, 30 Dec 2008 18:53:56 +0000 (18:53 +0000)]
Cleanup to r44994 -- use __METHOD__ rather than __FUNCTION__ in wfDeprecated() calls in constructors for deprecated classes. __FUNCTION__ will return only "__construct" which ain't quite what we want. :)
Brion Vibber [Tue, 30 Dec 2008 18:43:35 +0000 (18:43 +0000)]
Cleanup to r44993 -- avoid using '$x = foo()' in an if() condition on general principle. :)
Rotem Liss [Tue, 30 Dec 2008 18:37:33 +0000 (18:37 +0000)]
Localization update.
Raimond Spekking [Tue, 30 Dec 2008 17:52:43 +0000 (17:52 +0000)]
* (Bug 16121) Add a note that a page move was without creating a redirect in the move log
Victor Vasiliev [Tue, 30 Dec 2008 17:17:16 +0000 (17:17 +0000)]
* (bug 14117) Image redirects from the shared repo now show "redirected from"
Raimond Spekking [Tue, 30 Dec 2008 16:12:49 +0000 (16:12 +0000)]
Show subversion too even if a "normal" version number is available
Aaron Schulz [Tue, 30 Dec 2008 16:09:11 +0000 (16:09 +0000)]
Escape entities in h1 title html
Rotem Liss [Tue, 30 Dec 2008 14:46:51 +0000 (14:46 +0000)]
Localization update.
Aaron Schulz [Tue, 30 Dec 2008 12:55:41 +0000 (12:55 +0000)]
Add index clause, particularly for if an extension does a join or something
Aaron Schulz [Tue, 30 Dec 2008 12:22:15 +0000 (12:22 +0000)]
(Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com)
Alex Z [Tue, 30 Dec 2008 05:34:37 +0000 (05:34 +0000)]
(bug 16806) Fix regression from r44524 that caused links to files to not get added to mLinks in ParserOutput, which caused them to not be included in LinksUpdate::LinksUpdate(), and not added to pagelinks.
Aryeh Gregor [Tue, 30 Dec 2008 00:22:34 +0000 (00:22 +0000)]
Optionally allow non-HTML4-compatible ids
This adds a config option, $wgEnforceHtmlIds, true by default. If this
is set to false, all characters that are allowed in XML ids are let
through in header ids and manually-specified ids. In particular, this
should include all alphabetic and numeric characters.
Some remaining issues to work out:
* This will cause backward-compatibility issues for some types of links
and references: links from non-MediaWiki sources, links from MediaWiki
sources running a different version, external links, and references from
stylesheets/scripts. These could be partially alleviated by having a
second <a name="" id=""> for headers where the two versions differ, but
it would remain an issue for manually-specified id's.
* Any invalid characters are now, effectively, stripped (replaced with
underscores). This might cause problems if some writing systems are
invalid in id's for some reason: we'll want to double-check the list of
prohibited characters carefully.
* Some user agents might not support these links. IE5 appears to, and
so do recent versions of Opera and Firefox, but I didn't do extensive
testing.
* Not tested extensively, there are probably some bugs.
I think this would be good to enable on testwiki for the moment to see
how it goes.
No parser test regressions. No change to RELEASE-NOTES, we can add that
when the option is enabled by default (ideally, removed entirely).
Aryeh Gregor [Tue, 30 Dec 2008 00:22:14 +0000 (00:22 +0000)]
Improve ugly interface for Sanitizer::escapeId()
Calling it with no extra arguments will now assume that you're escaping
a whole id, not an id fragment, which is safer. Also, instead of ugly
bitfield-based options, I've changed the options to use an array of
strings. I fixed all callers in trunk. Out-of-tree callers that were
using Sanitizer::NONE will get correct behavior, while those that were
calling it with no arguments will get slightly changed behavior (an x
will be prepended). I think this is harmless enough that we can skip
back-compat cruft here.
This should cause no visible changes. No parser test regressions.
Siebrand Mazeland [Mon, 29 Dec 2008 22:35:29 +0000 (22:35 +0000)]
Localisation updates for core messages from Betawiki (2008-12-29 23:29 CET)
Aaron Schulz [Mon, 29 Dec 2008 22:24:31 +0000 (22:24 +0000)]
Use quickUserCan for UI links
Aaron Schulz [Mon, 29 Dec 2008 21:57:34 +0000 (21:57 +0000)]
Pretty up WLH form slightly
Victor Vasiliev [Mon, 29 Dec 2008 19:19:49 +0000 (19:19 +0000)]
* Image moving over an existing file no longer throws a database error
Aaron Schulz [Mon, 29 Dec 2008 19:06:00 +0000 (19:06 +0000)]
Typo
Aaron Schulz [Mon, 29 Dec 2008 18:58:27 +0000 (18:58 +0000)]
(bug 11330) Passing default to Request->getInt() is good enough, rather than added code to do the same thing
Aaron Schulz [Mon, 29 Dec 2008 18:49:50 +0000 (18:49 +0000)]
* (bug 16209) Deleted images are not watched
* Add watchlist check to filedelete form
* Fix XHTML on filedelete form
Raimond Spekking [Mon, 29 Dec 2008 18:36:56 +0000 (18:36 +0000)]
* Add a new message for an ellipsis
* Use this message for MWSearch
Siebrand Mazeland [Mon, 29 Dec 2008 10:02:05 +0000 (10:02 +0000)]
* sysop -> administrator for consistency
* typo: full -> fully
Tim Starling [Mon, 29 Dec 2008 08:43:01 +0000 (08:43 +0000)]
Use xdiff_string_rabdiff() instead of xdiff_string_bdiff()
Siebrand Mazeland [Mon, 29 Dec 2008 00:06:30 +0000 (00:06 +0000)]
Localisation updates for core messages from Betawiki (2008-12-29 01:04 CET)
Siebrand Mazeland [Sun, 28 Dec 2008 23:55:58 +0000 (23:55 +0000)]
Localisation updates for core messages from Betawiki (2008-12-29 00:24 CET)
Aaron Schulz [Sun, 28 Dec 2008 21:28:40 +0000 (21:28 +0000)]
(bug 16497) Cut down on heavy memory usage here
Alexandre Emsenhuber [Sun, 28 Dec 2008 21:24:51 +0000 (21:24 +0000)]
Missing rights: move-rootuserpages, move-subpages
Alexandre Emsenhuber [Sun, 28 Dec 2008 16:46:05 +0000 (16:46 +0000)]
* Since we are in Linker, use $this->link() rather than grabbing it from $wgUser->getSkin() (which is $this in the most cases)
* Add new lines in output
* Whitespaces tweaks
Aaron Schulz [Sun, 28 Dec 2008 15:17:21 +0000 (15:17 +0000)]
Fix doc comment, sigh
Aaron Schulz [Sun, 28 Dec 2008 15:14:15 +0000 (15:14 +0000)]
FileCache - Leave raw page cache control alone to avoid hits
Aaron Schulz [Sun, 28 Dec 2008 15:03:57 +0000 (15:03 +0000)]
FileCache tweaks:
* Fix typo self -> MediaWiki
* View updates run on client cache hits
* Removed unneeded $wgOut->disable() call
* Disabled unused output on rawpage cache hits
* Removed redundant checkLastModified()
Aaron Schulz [Sun, 28 Dec 2008 14:32:49 +0000 (14:32 +0000)]
Opps, forgot to commit this
Aaron Schulz [Sun, 28 Dec 2008 14:19:39 +0000 (14:19 +0000)]
FileCache cleanuo:
* Add a clearFileCache() function in the place of various unlink() calls. This also clears the raw page cache.
* Fix useFileCache() for loop
* Add mType field to file cache objects
Aaron Schulz [Sun, 28 Dec 2008 13:32:32 +0000 (13:32 +0000)]
Enable filecache for raw page hits if $wgUseFileCache is on
Shinjiman [Sun, 28 Dec 2008 12:31:23 +0000 (12:31 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Aaron Schulz [Sun, 28 Dec 2008 11:50:33 +0000 (11:50 +0000)]
(bug 16721) Reset auth token to stop auto-login. Auto-login defeats the user rename/touch change to break the login since the user can just get logged in again under the old name without noticing, which results in edits under the old name.
Rotem Liss [Sun, 28 Dec 2008 11:10:17 +0000 (11:10 +0000)]
Localization update.
Siebrand Mazeland [Sun, 28 Dec 2008 11:04:29 +0000 (11:04 +0000)]
Reword 'interwiki-not-enabled'
Aryeh Gregor [Sun, 28 Dec 2008 03:31:21 +0000 (03:31 +0000)]
Polish up r45109 (changes to header id generation)
1) Make sure internal links are using the new encoding scheme and still
work (this also reduces code duplication)
2) Make sure no id can start with a nonletter, not just header id's
No parser test regressions.
Alex Z [Sun, 28 Dec 2008 03:14:37 +0000 (03:14 +0000)]
cleanup to r45102 per Nikerabbit on CodeReview
X! [Sun, 28 Dec 2008 02:58:04 +0000 (02:58 +0000)]
Quick hack to allow disallowing local editing of the interwiki table.
X! [Sun, 28 Dec 2008 02:10:21 +0000 (02:10 +0000)]
Forgot to add RELEASE-NOTES
X! [Sun, 28 Dec 2008 01:43:10 +0000 (01:43 +0000)]
Use wikitable class for Interwiki table
Shinjiman [Sun, 28 Dec 2008 01:21:26 +0000 (01:21 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Aryeh Gregor [Sun, 28 Dec 2008 00:05:14 +0000 (00:05 +0000)]
Prepend x to section ids not starting with [a-z]
This will break any preexisting links to such sections (other than
those generated by the software, of course). There should be no parser
test regressions.
Siebrand Mazeland [Sun, 28 Dec 2008 00:03:19 +0000 (00:03 +0000)]
Localisation updates for core messages from Betawiki (2008-12-28 00:53 CET)
* also rebuild all language files, removing 'bugreports' and 'bugreportspage'
Raimond Spekking [Sat, 27 Dec 2008 21:15:27 +0000 (21:15 +0000)]
* (bug 16617) Add "talk" link to list of templates in edit mode
Based on a patch by Nakon
Raimond Spekking [Sat, 27 Dec 2008 20:30:33 +0000 (20:30 +0000)]
Remove unused parameter
Rotem Liss [Sat, 27 Dec 2008 20:25:41 +0000 (20:25 +0000)]
Localization update.
Alex Z [Sat, 27 Dec 2008 20:17:53 +0000 (20:17 +0000)]
use Xml::tags() instead of Xml::element() in SpecialInterwiki::error() so as not to escape the content
Alex Z [Sat, 27 Dec 2008 20:02:37 +0000 (20:02 +0000)]
more Special:Interwiki cleanup:
* standardize the error message display
* show the form after an edit/delete error and preload the fields with the previous input
* quick filter for bad characters
Raimond Spekking [Sat, 27 Dec 2008 19:58:11 +0000 (19:58 +0000)]
* Bug 16484 Remove an unneeded extra comma in user rights log (and other lists)
** Removed the comma from MediaWiki:and (@Translatewiki staff: no fuzzying needed)
** Special case for two messages in log
** Function description updated
Based on a patch by Nakon
Alexandre Emsenhuber [Sat, 27 Dec 2008 19:32:06 +0000 (19:32 +0000)]
Added new line so that it doesn't break output
Siebrand Mazeland [Sat, 27 Dec 2008 14:33:26 +0000 (14:33 +0000)]
Follow up on r44724 (Remove some less-useful redundant links from sidebar): remove bug reports link completely.
Alexandre Emsenhuber [Sat, 27 Dec 2008 13:35:55 +0000 (13:35 +0000)]
Tweaks to Special:Interwiki:
* Splitted SpecialInterwiki::execute() in multiple functions
* using OutputPage::addWikiMsg() and OutputPage::wrapWikiMsg() when possible
* using $res->fetchObject() and $res->free() rather than $dbr->fetchObject() and $dbr->freeResult()
* Removed 'interwiki' restrict passed to parent::__construct() so that it appears in Special:SpecialPages for everybody
* Added missing 'interwiki' entry to User::$mCoreRights
Rotem Liss [Sat, 27 Dec 2008 09:57:04 +0000 (09:57 +0000)]
Localization update.
Siebrand Mazeland [Sat, 27 Dec 2008 09:27:29 +0000 (09:27 +0000)]
* Remove obsolete message 'interwiki-desc'
* Update message documentation a bit (also removed a syntax error from MessagesQqq.php).
Siebrand Mazeland [Sat, 27 Dec 2008 08:56:18 +0000 (08:56 +0000)]
Localisation updates for core messages from Betawiki (2008-12-27 09:49 CET)
Siebrand Mazeland [Sat, 27 Dec 2008 08:40:15 +0000 (08:40 +0000)]
Set $wgGroupPermissions for interwiki from sysop to bureaucrat to prevent accidents.
Alex Z [Sat, 27 Dec 2008 08:21:21 +0000 (08:21 +0000)]
slight fix to last commit :P
Alex Z [Sat, 27 Dec 2008 08:19:23 +0000 (08:19 +0000)]
XHTML fixes
Alex Z [Sat, 27 Dec 2008 08:14:57 +0000 (08:14 +0000)]
cleanup of Special:Interwiki:
* Use Xml functions for most of it
* Conform ids/names to coding conventions
Siebrand Mazeland [Sat, 27 Dec 2008 07:57:49 +0000 (07:57 +0000)]
Follow up on r45062.
* update optional settings
* rebuild all messages files