lhc/web/wiklou.git
15 years agoLocalisation updates for core messages from Betawiki (2008-08-26 14:37 CEST)
Siebrand Mazeland [Tue, 26 Aug 2008 12:46:51 +0000 (12:46 +0000)]
Localisation updates for core messages from Betawiki (2008-08-26 14:37 CEST)

15 years agoAdded __destruct(), for stable pseudo-branch
Tim Starling [Tue, 26 Aug 2008 06:48:24 +0000 (06:48 +0000)]
Added __destruct(), for stable pseudo-branch

15 years agomark getOldIDFromRequest as public
Aaron Schulz [Tue, 26 Aug 2008 00:32:55 +0000 (00:32 +0000)]
mark getOldIDFromRequest as public

15 years agoRevert r39949 "* Revert revert r39662 of my parser changes."
Brion Vibber [Mon, 25 Aug 2008 22:19:50 +0000 (22:19 +0000)]
Revert r39949 "* Revert revert r39662 of my parser changes."
Causes weird regressions on http://meta.wikimedia.org/wiki/Talk:Spam_blacklist
Couldn't isolate to a parser test in a few minutes; some kind of template interaction perhaps.

Sample bad HTML like:
The associated page is used by the Mediawiki <a href="&lt;a href=" class="external free" title="http://www.mediawiki.org/wiki/Extension:SpamBlacklist" rel="nofollow">http://www.mediawiki.org/wiki/Extension:SpamBlacklist</a>" class="extiw" title="mw:Extension:SpamBlacklist"&gt;Spam Blacklist extension, and lists strings of text that may not be used in URLs in any page in Wikimedia Foundation projects (as well as many external wikis). Any meta <a href="/wiki/Administrator" title="Administrator">administrator</a> can edit the spam blacklist. There is also a more aggressive way to block spamming through direct use of <a href="/wiki/Anti-spam_features#.24wgSpamRegex" title="Anti-spam features">$wgSpamRegex</a>. Only <a href="/wiki/Developers" title="Developers" class="mw-redirect">developers</a> can make changes to $wgSpamRegex, and its use is to be avoided whenever possible.

15 years agoRevert r39954, 39958 "Tweaks for SiteConfiguration:"
Brion Vibber [Mon, 25 Aug 2008 22:06:03 +0000 (22:06 +0000)]
Revert r39954, 39958 "Tweaks for SiteConfiguration:"
This seems to have broken upload dirs on live site (eg http://upload.wikimedia.org/wiki/commons/6/66/Diemetrie.png in place of http://upload.wikimedia.org/wikipedia/commons/6/66/Diemetrie.png)
Please make no further changes without some regression testing...

15 years agothis looks backwards
Aaron Schulz [Mon, 25 Aug 2008 20:57:19 +0000 (20:57 +0000)]
this looks backwards

15 years agomark these 'public'
Aaron Schulz [Mon, 25 Aug 2008 20:52:13 +0000 (20:52 +0000)]
mark these 'public'

15 years ago* Add all HTMLDiff-related classes to the autoloader.
Chad Horohoe [Mon, 25 Aug 2008 20:19:00 +0000 (20:19 +0000)]
* Add all HTMLDiff-related classes to the autoloader.
* Move all stuff @ingroup DifferenceEngine to /diff
* Split off Node and friends to Nodes.php to make HTMLDiff.php shorter.

15 years agoAdd @ingroup definitions.
Chad Horohoe [Mon, 25 Aug 2008 20:01:04 +0000 (20:01 +0000)]
Add @ingroup definitions.

15 years agoAdd separate debug output from the normal wfDebug() output, similar to the parser...
Chad Horohoe [Mon, 25 Aug 2008 19:03:18 +0000 (19:03 +0000)]
Add separate debug output from the normal wfDebug() output, similar to the parser debug report. Only displayed if A) $wgEnableHtmlDiff is on and B) $wgDebugComments is on.

15 years agoRemoved Exception used for debugging. Disabled edit buttons for HTML diff.
Guy Van den Broeck [Mon, 25 Aug 2008 18:45:29 +0000 (18:45 +0000)]
Removed Exception used for debugging. Disabled edit buttons for HTML diff.

15 years ago*stab*
Alexandre Emsenhuber [Mon, 25 Aug 2008 18:10:27 +0000 (18:10 +0000)]
*stab*

15 years ago(bug 15303) Title conversion for templates wasn't working in some cases
Alexandre Emsenhuber [Mon, 25 Aug 2008 18:06:54 +0000 (18:06 +0000)]
(bug 15303) Title conversion for templates wasn't working in some cases

15 years agoSet svn:eol-style native on includes/api/ApiWatch.php.
Aryeh Gregor [Mon, 25 Aug 2008 17:57:20 +0000 (17:57 +0000)]
Set svn:eol-style native on includes/api/ApiWatch.php.

Reported on IRC by rindolf.

15 years agorm useless comment :)
Alexandre Emsenhuber [Mon, 25 Aug 2008 17:12:20 +0000 (17:12 +0000)]
rm useless comment :)

15 years agoTweaks for SiteConfiguration:
Alexandre Emsenhuber [Mon, 25 Aug 2008 16:46:34 +0000 (16:46 +0000)]
Tweaks for SiteConfiguration:
* Introduced SiteConfiguration::$siteParamsCallback, a callback function that returns an array of params to define custom parameters to replace and wiki tags so that they can be used at run time (e.g. for CentralAuth or SiteMatrix), can also override SiteConfiguration::siteFromDB(). See the documentation of that variable for further information. Backward compatibility is maintened for paramters passed to SiteConfiguration::get() and similar functions but the vaules returned by the callback function will override them.
* Added SiteConfiguration::arrayMerge() for merging arrays, written by Werdna. Warning: as array_merge(), it may change numeric keys, so don't use it for settings having namespaces index in keys.
* Removed SiteFromDB hook, deprecated by the callback function
* document a bit

15 years ago* Revert revert r39662 of my parser changes.
Tim Starling [Mon, 25 Aug 2008 16:08:19 +0000 (16:08 +0000)]
* Revert revert r39662 of my parser changes.
* Fixed image link whitespace handling (Brion's complaint, r39662)
* Added fuzz test capability to parserTests.php
* Added __destruct() functions to Parser and Language, and called them explicitly from parserTests.inc, to avoid unconstrained memory usage during fuzz testing.
* Added unified diff to output of Parser_DiffTest
* Fixed whitespace change in Parser::doTableStuff() (found by fuzzing)
* Added feature to RELEASE-NOTES which I'd committed last time but forgotten to note: <gallery> will accept image names with no "Image:" prefix (rediscovered by fuzzing)
* Limit memory usage in Title::getInterwikiLink()
* Fixed chronic fail of all interwiki link parser tests (hid Siebrand's complaint, r39464)
* Fixed chronic fail of one of the LanguageConverter parser tests. Was actually an ignored bug.

15 years agoTweak for r39944: correct fix :)
Alexandre Emsenhuber [Mon, 25 Aug 2008 14:49:15 +0000 (14:49 +0000)]
Tweak for r39944: correct fix :)

15 years agoLocalization update.
Rotem Liss [Mon, 25 Aug 2008 14:26:49 +0000 (14:26 +0000)]
Localization update.

15 years agoAdd {{PLURAL}} support to 'anonymous'. 2 uses in Credits already passed the $1 param...
Chad Horohoe [Mon, 25 Aug 2008 14:13:32 +0000 (14:13 +0000)]
Add {{PLURAL}} support to 'anonymous'. 2 uses in Credits already passed the $1 param, it just wasn't in the message.

15 years agoUse wfEmptyMsg() here instead of !$tagDescription. Should make <non-existent-message...
Chad Horohoe [Mon, 25 Aug 2008 13:39:33 +0000 (13:39 +0000)]
Use wfEmptyMsg() here instead of !$tagDescription. Should make <non-existent-message> errors when a particular HTML tag doesn't exist (notably, diff-s) to go away now. Should now output the raw tag ('<s>', again in the noticed case). Oddly, I like that more than the messages ;-)

15 years agoAdd siteadmin to core rights list.
Victor Vasiliev [Mon, 25 Aug 2008 10:32:11 +0000 (10:32 +0000)]
Add siteadmin to core rights list.

15 years agorevert rev#36938
Domas Mituzas [Mon, 25 Aug 2008 09:44:20 +0000 (09:44 +0000)]
revert rev#36938

15 years agoApiQueryBase::titleToKey and ApiQueryBase::keyToTitle;
Daniel Friesen [Mon, 25 Aug 2008 06:57:15 +0000 (06:57 +0000)]
ApiQueryBase::titleToKey and ApiQueryBase::keyToTitle;
Don't bother constructing a title object when the $title/$key is ''. (Why were we doing this check after creating the title object, there's no point in even creating a big object if we're just going to check the old string we already had to see if it's empty)
And as a bonus, use trim() so that user input such as ' ' does not dish out an error (There really isn't much difference between "&title=" and "&title= " if one shouldn't output an error, why should the other?).

15 years agoRevert 39936 and 39935;
Daniel Friesen [Mon, 25 Aug 2008 06:50:31 +0000 (06:50 +0000)]
Revert 39936 and 39935;
This 'fix' is merely a bad workaround and creates more issues rather than simply fixing.
A) Part of the Title class is being /duplicated/ meaning more bugs are going to show up when someone improves stuff inside Title and doesn't know stuff is duplicated here.
B) This change breaks cases as $wgCaptialLinks is now a per-namespace array, not a boolean.
C) This is the wrong way to 'fix' the issue, titleToKey and keyToTitle are meant to handle full titles, not prefixes, the issue is not that they break prefixes, it's that they are being misused and thus outputting something other than expected. The best way to fix this issue, would probably be to pad the title with something like '.' and then strip that single character off the db key.
D) Because whitespace is no longer being trimmed actual titles aren't being normalized properly in the other modules causing 'foobar ' to attempt to use the db key 'foobar_' which cannot exist.

15 years agoFollow-up for r39935: re-fix bug 14651 by making the first letter uppercase if needed...
Roan Kattouw [Mon, 25 Aug 2008 05:51:46 +0000 (05:51 +0000)]
Follow-up for r39935: re-fix bug 14651 by making the first letter uppercase if needed in keyToTitle(). Code stolen from Yuri in r17039, who removed the functionality without explanation in r17096. So much for today's history lesson.

15 years agoAPI: Go back to using the good old str_replace() hacks rather than Title methods...
Roan Kattouw [Mon, 25 Aug 2008 05:41:53 +0000 (05:41 +0000)]
API: Go back to using the good old str_replace() hacks rather than Title methods in ApiQueryBase::titleToKey() and keyToTitle(). Error handling was awkward and the Title methods over-normalize the input, causing bug 15275 (apprefix ignores spaces at the end)

15 years agoRevert r39675, which made functions that don't depend on $this static, for performanc...
Tim Starling [Mon, 25 Aug 2008 04:27:40 +0000 (04:27 +0000)]
Revert r39675, which made functions that don't depend on $this static, for performance. See wikitech-l for a full explanation.

15 years agoMinor log-related changes for documentation and to support a potential extension
Tim Starling [Mon, 25 Aug 2008 03:08:56 +0000 (03:08 +0000)]
Minor log-related changes for documentation and to support a potential extension

15 years agoremove extra parenthesis
Aaron Schulz [Sun, 24 Aug 2008 22:50:12 +0000 (22:50 +0000)]
remove extra parenthesis

15 years agoDocument the new param.
Chad Horohoe [Sun, 24 Aug 2008 21:39:10 +0000 (21:39 +0000)]
Document the new param.

15 years ago+RELEASE-NOTES for previous commit.
Chad Horohoe [Sun, 24 Aug 2008 20:04:29 +0000 (20:04 +0000)]
+RELEASE-NOTES for previous commit.

15 years agoLet action=purge actually do something for the ForeignAPIFile/Repo code. Still need...
Chad Horohoe [Sun, 24 Aug 2008 20:02:50 +0000 (20:02 +0000)]
Let action=purge actually do something for the ForeignAPIFile/Repo code. Still need to make it work on the metadata cache too, but I can live with this for now :)

15 years agotypo
Meno25 [Sun, 24 Aug 2008 19:58:32 +0000 (19:58 +0000)]
typo

15 years agoLocalisation updates for core messages from Betawiki (2008-08-24 21:20 CEST)
Siebrand Mazeland [Sun, 24 Aug 2008 19:26:01 +0000 (19:26 +0000)]
Localisation updates for core messages from Betawiki (2008-08-24 21:20 CEST)

15 years agoCleaning enotif-* messages : replacing obsolete (PAGEEDITOR|PAGETITLE)_(QC|RAWURL...
Nicolas Dumazet [Sun, 24 Aug 2008 15:11:54 +0000 (15:11 +0000)]
Cleaning enotif-* messages : replacing obsolete (PAGEEDITOR|PAGETITLE)_(QC|RAWURL) by PAGEEDITOR/PAGETITLE

15 years agoLocalisation updates for extension messages from Betawiki (2008-08-24 13:51 CEST)
Siebrand Mazeland [Sun, 24 Aug 2008 12:00:07 +0000 (12:00 +0000)]
Localisation updates for extension messages from Betawiki (2008-08-24 13:51 CEST)

15 years agoRemoved the AOL hack. Use the TrustedXFF extension instead.
Tim Starling [Sun, 24 Aug 2008 06:45:07 +0000 (06:45 +0000)]
Removed the AOL hack. Use the TrustedXFF extension instead.

15 years agoClarified visibility + docs
Chad Horohoe [Sun, 24 Aug 2008 03:06:03 +0000 (03:06 +0000)]
Clarified visibility + docs

15 years agoUpdate ar and arz
Meno25 [Sun, 24 Aug 2008 01:04:08 +0000 (01:04 +0000)]
Update ar and arz

15 years agomark visibility
Aaron Schulz [Sat, 23 Aug 2008 23:22:24 +0000 (23:22 +0000)]
mark visibility

15 years agoforgot debugging code
Alexandre Emsenhuber [Sat, 23 Aug 2008 20:35:23 +0000 (20:35 +0000)]
forgot debugging code

15 years agoMake SpecialAllpages and SpecialPrefixindex directly extend IncludableSpecialPage:
Alexandre Emsenhuber [Sat, 23 Aug 2008 20:32:46 +0000 (20:32 +0000)]
Make SpecialAllpages and SpecialPrefixindex directly extend IncludableSpecialPage:
* it is possible to have the title object by calling $this->getTitle() and not by having to redefine the special page name in that classes
* passing the $including param is no longer required, use $this->including() instead

15 years agoremove comment
Aaron Schulz [Sat, 23 Aug 2008 20:16:41 +0000 (20:16 +0000)]
remove comment

15 years agomd5() the URL in cache keys so they're not excessively long. Thanks to Nikerabbit...
Chad Horohoe [Sat, 23 Aug 2008 19:13:04 +0000 (19:13 +0000)]
md5() the URL in cache keys so they're not excessively long. Thanks to Nikerabbit for pointing this out.

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Sat, 23 Aug 2008 01:45:21 +0000 (01:45 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoshould be <=, not <
Aaron Schulz [Sat, 23 Aug 2008 01:26:06 +0000 (01:26 +0000)]
should be <=, not <

15 years ago*sigh*...needs to return a string to not die in ImagePage
Aaron Schulz [Sat, 23 Aug 2008 01:19:44 +0000 (01:19 +0000)]
*sigh*...needs to return a string to not die in ImagePage

15 years agoFix arguments to call:
Aaron Schulz [Sat, 23 Aug 2008 01:12:00 +0000 (01:12 +0000)]
Fix arguments to call:
Catchable fatal error: Argument 2 passed to Parser::parse() must be an instance of Title, instance of ParserOptions given, called in C:\Server\xampp\htdocs\MW\includes\filerepo\LocalFile.php on line 1118 and defined in C:\Server\xampp\htdocs\MW\includes\parser\Parser.php on line 290

15 years agoAdd cache update hook for flaggedrevs
Aaron Schulz [Fri, 22 Aug 2008 22:36:02 +0000 (22:36 +0000)]
Add cache update hook for flaggedrevs

15 years agoA few more messages that shouldn't be here
Meno25 [Fri, 22 Aug 2008 22:02:20 +0000 (22:02 +0000)]
A few more messages that shouldn't be here

15 years agoUpdate file, remove some messages that shouldn't be here
Meno25 [Fri, 22 Aug 2008 19:18:32 +0000 (19:18 +0000)]
Update file, remove some messages that shouldn't be here

15 years agoLocalisation updates. Remove a few messages that should not be in de-formal
Siebrand Mazeland [Fri, 22 Aug 2008 18:24:52 +0000 (18:24 +0000)]
Localisation updates. Remove a few messages that should not be in de-formal

15 years agoLocalization update for he.
Rotem Liss [Fri, 22 Aug 2008 16:57:39 +0000 (16:57 +0000)]
Localization update for he.

15 years agoHistory page with HTML diff enabled now also works when JavaScript is disabled.
Guy Van den Broeck [Fri, 22 Aug 2008 16:53:56 +0000 (16:53 +0000)]
History page with HTML diff enabled now also works when JavaScript is disabled.

15 years agoTweak to UI for Special:Watchlist. Put a fieldset around the options. Looks cleaner...
Chad Horohoe [Fri, 22 Aug 2008 16:00:04 +0000 (16:00 +0000)]
Tweak to UI for Special:Watchlist. Put a fieldset around the options. Looks cleaner to me :)

15 years agoApparently there exists a 'wgStyleVersion' :-)
Guy Van den Broeck [Fri, 22 Aug 2008 15:53:43 +0000 (15:53 +0000)]
Apparently there exists a 'wgStyleVersion' :-)

15 years agoRemoved non-XHTML-compliant attributes from HTML differ output. Removed unused javasc...
Guy Van den Broeck [Fri, 22 Aug 2008 15:49:09 +0000 (15:49 +0000)]
Removed non-XHTML-compliant attributes from HTML differ output. Removed unused javascript.

15 years agoTweak for r39314: don't add a line break before the "Go" button on the watchlist...
Aryeh Gregor [Fri, 22 Aug 2008 15:28:53 +0000 (15:28 +0000)]
Tweak for r39314: don't add a line break before the "Go" button on the watchlist.  This used up yet more vertical space.  It also visually dissociated the "Go" button from the namespace selector, making it look like it maybe applied to all the buttons above too, due to lack of a fieldset.  On the other hand, this way looks a little awkward too.  Maybe there's a better way?

Reported by User:Garion96 on [[WP:VPT]]: <http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=233532922#.22go.22_button_in_watchlist>

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Fri, 22 Aug 2008 14:12:31 +0000 (14:12 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoOnly run hooks if Hooks.php has been loaded (i.e. we CAN run them)
Andrew Garrett [Fri, 22 Aug 2008 13:02:49 +0000 (13:02 +0000)]
Only run hooks if Hooks.php has been loaded (i.e. we CAN run them)

15 years ago*ahem*
Andrew Garrett [Fri, 22 Aug 2008 12:09:37 +0000 (12:09 +0000)]
*ahem*

15 years agoQuick hook to allow reusers of SiteConfiguration to customise siteFromDB, which is...
Andrew Garrett [Fri, 22 Aug 2008 12:08:21 +0000 (12:08 +0000)]
Quick hook to allow reusers of SiteConfiguration to customise siteFromDB, which is pretty wikimedia-specific

15 years agoLocalisation updates for core messages from Betawiki (2008-08-22 09:56 CEST)
Siebrand Mazeland [Fri, 22 Aug 2008 08:18:12 +0000 (08:18 +0000)]
Localisation updates for core messages from Betawiki (2008-08-22 09:56 CEST)

15 years agoRemove unused global.
Chad Horohoe [Fri, 22 Aug 2008 02:01:31 +0000 (02:01 +0000)]
Remove unused global.

15 years agoFixing bug in HTML diff when the word '0' is encountered. Thanks siebrand for reporting
Guy Van den Broeck [Thu, 21 Aug 2008 23:27:07 +0000 (23:27 +0000)]
Fixing bug in HTML diff when the word '0' is encountered. Thanks siebrand for reporting

15 years agoRevert r39793 "* (bug 13879) Special:EmailUser shows a form in case no user was speci...
Brion Vibber [Thu, 21 Aug 2008 22:56:45 +0000 (22:56 +0000)]
Revert r39793 "* (bug 13879) Special:EmailUser shows a form in case no user was specified" for the moment
* Recipient name seems to be output raw into HTML form; this is insecure
* We've lost the link to the target's user page in the primary use case (followed 'email this user' link)
* Behavior if you misspell a name doesn't look very nice; you can't just fix it and resubmit the form, you have to hit 'back' from an error page and hope your browser isn't one that deletes all your form data :D

15 years agoAdd 'diff-with-additional' as optional
Siebrand Mazeland [Thu, 21 Aug 2008 22:32:50 +0000 (22:32 +0000)]
Add 'diff-with-additional' as optional

15 years agoStart to improve HTMLDiff.php localization. For the time being, I recommend that...
Aryeh Gregor [Thu, 21 Aug 2008 22:16:44 +0000 (22:16 +0000)]
Start to improve HTMLDiff.php localization.  For the time being, I recommend that the messages *not* be localized, because they're likely to change form quite a bit more before they're stable.  Someone might want to temporarily mark them "do not change" and have BetaWiki not pick them up.  I'd appreciate help on this, of course.

15 years ago* (bug 13879) Special:EmailUser shows a form in case no user was specified
Bryan Tong Minh [Thu, 21 Aug 2008 22:15:34 +0000 (22:15 +0000)]
* (bug 13879) Special:EmailUser shows a form in case no user was specified

15 years agoDo not use PHP 5.2.0 functions in core, kthx.
Aryeh Gregor [Thu, 21 Aug 2008 21:41:30 +0000 (21:41 +0000)]
Do not use PHP 5.2.0 functions in core, kthx.

15 years agoBump style version for r39776.
Chad Horohoe [Thu, 21 Aug 2008 20:28:45 +0000 (20:28 +0000)]
Bump style version for r39776.

15 years agoUse wfEmptyMsg() instead of !$message.
Chad Horohoe [Thu, 21 Aug 2008 20:20:15 +0000 (20:20 +0000)]
Use wfEmptyMsg() instead of !$message.

15 years agoAdd newline to put each message on its own line.
Siebrand Mazeland [Thu, 21 Aug 2008 19:44:19 +0000 (19:44 +0000)]
Add newline to put each message on its own line.

15 years agoFixing comments.
Rotem Liss [Thu, 21 Aug 2008 19:29:26 +0000 (19:29 +0000)]
Fixing comments.

15 years agoAdd duplicate check to the default checks: Now that messages may be makred as optiona...
Rotem Liss [Thu, 21 Aug 2008 19:15:40 +0000 (19:15 +0000)]
Add duplicate check to the default checks: Now that messages may be makred as optional, every message not marked as such should be translated.

15 years agoLocalization fix.
Rotem Liss [Thu, 21 Aug 2008 19:13:33 +0000 (19:13 +0000)]
Localization fix.

15 years agoLocalization fix.
Rotem Liss [Thu, 21 Aug 2008 19:12:42 +0000 (19:12 +0000)]
Localization fix.

15 years agoLocalization update.
Rotem Liss [Thu, 21 Aug 2008 19:10:50 +0000 (19:10 +0000)]
Localization update.

15 years agoSimplified i18n for HTMLDiff
Guy Van den Broeck [Thu, 21 Aug 2008 18:32:53 +0000 (18:32 +0000)]
Simplified i18n for HTMLDiff

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Thu, 21 Aug 2008 16:58:58 +0000 (16:58 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoLocalisation updates for core messages from Betawiki (2008-08-21 17:36 CEST)
Siebrand Mazeland [Thu, 21 Aug 2008 15:51:50 +0000 (15:51 +0000)]
Localisation updates for core messages from Betawiki (2008-08-21 17:36 CEST)

15 years agoAdding action=watch to the API
Roan Kattouw [Thu, 21 Aug 2008 15:44:13 +0000 (15:44 +0000)]
Adding action=watch to the API

15 years agoTweaks for skins:
Alexandre Emsenhuber [Thu, 21 Aug 2008 14:09:57 +0000 (14:09 +0000)]
Tweaks for skins:
* Moved SkinTemplate::addStyle() and related stuff to OutputPage so that it can be used non-SkinTemplate skins and avoid duplication with the actual OutputPage::addStyle() (the two functions have the same format).
* Non-SkinTemplate skins now also load their CSS with <link> tags instead of @import.
* Moved SkinTemplate::setupUserCss() to Skin.
* Merged action=raw&gen=(js|css) for SkinTemplate and non-SkinTemplate skins, renamed functions to Skin::generateUserJs() and Skin::generateUserStyleSheet() and dropped a lot of cascading call which is a bit incomprehensible.

15 years agoForce inserted bools to be ints, per Tim's suggestion on bug 15148.
Greg Sabino Mullane [Thu, 21 Aug 2008 13:10:19 +0000 (13:10 +0000)]
Force inserted bools to be ints, per Tim's suggestion on bug 15148.
This should be fine for now as Postgres uses SMALLINTs for BOOLs, to
match MySQLs BOOL/TINYINT aliasing and subsequent MW coding assumptions.
It's possible this will cause bad effects if inserted values are called
in a boolean context when they are going into a non-SMALLINT column, but we can handle
those as they come up.

15 years agoAdded GlobalBlocking local table
Tim Starling [Thu, 21 Aug 2008 11:54:53 +0000 (11:54 +0000)]
Added GlobalBlocking local table

15 years agoLocalization update for he.
Rotem Liss [Thu, 21 Aug 2008 08:51:40 +0000 (08:51 +0000)]
Localization update for he.

15 years agoMore Doxygen alias fixes; these aliases should be consistent enough to use all over...
Fran Rogers [Thu, 21 Aug 2008 08:39:31 +0000 (08:39 +0000)]
More Doxygen alias fixes; these aliases should be consistent enough to use all over now :)

15 years agoMark 'accesskey-visualcomparison' as optional. Rebuilt message files.
Siebrand Mazeland [Thu, 21 Aug 2008 08:33:25 +0000 (08:33 +0000)]
Mark 'accesskey-visualcomparison' as optional. Rebuilt message files.

15 years agoSame for other skins, modify release note accordingly.
Ilmari Karonen [Thu, 21 Aug 2008 07:42:43 +0000 (07:42 +0000)]
Same for other skins, modify release note accordingly.

15 years agoMake the "image" tab blue for images without a local description page (such as Common...
Ilmari Karonen [Thu, 21 Aug 2008 07:25:28 +0000 (07:25 +0000)]
Make the "image" tab blue for images without a local description page (such as Commons images).

15 years agominor code tweaks
Aaron Schulz [Thu, 21 Aug 2008 03:05:25 +0000 (03:05 +0000)]
minor code tweaks

15 years ago+1 $wgStyleVersion for previous commit.
Chad Horohoe [Thu, 21 Aug 2008 00:55:10 +0000 (00:55 +0000)]
+1 $wgStyleVersion for previous commit.

15 years agoAdded button for Visual Comparison to history page, previous and next diff buttons...
Guy Van den Broeck [Thu, 21 Aug 2008 00:45:13 +0000 (00:45 +0000)]
Added button for Visual Comparison to history page, previous and next diff buttons follow that choice consistently and diff pages have a link to switch from/to source/visual comparison

15 years agomessages.inc even.
Chad Horohoe [Thu, 21 Aug 2008 00:32:46 +0000 (00:32 +0000)]
messages.inc even.

15 years ago* Move messages from a hardcoded $bundle to core message files.
Chad Horohoe [Thu, 21 Aug 2008 00:22:02 +0000 (00:22 +0000)]
* Move messages from a hardcoded $bundle to core message files.
* getString() is now a wrapper for htmlspecialchars( wfMsgNoTrans() ) as these messages are plaintext (per guyvdb)
* Could probably use more cleanup, but this is a nice start in the right direction.

15 years agoDocument a bit.
Chad Horohoe [Wed, 20 Aug 2008 22:22:29 +0000 (22:22 +0000)]
Document a bit.

15 years agoTweak for r29770 (yes, some months after it):
Alexandre Emsenhuber [Wed, 20 Aug 2008 21:27:12 +0000 (21:27 +0000)]
Tweak for r29770 (yes, some months after it):
If the wiki is read only mode, don't show a "database locked" error if previewing or showing diff, but rather the "normal" action with a warning that the database is currently locked. If the user is trying to save the page, he'll see the preview page instead. Currently, if you are saving or previewing a page while the database is locked, you'll see the "database locked" error with the current text (or no text at all if the page doesn't exist), not your text, this might be confusing.

Also added the reason of the lock to the readonlywarning message.

15 years agoProvide some info on which case value was not handled in ApiLogin
Bryan Tong Minh [Wed, 20 Aug 2008 19:56:18 +0000 (19:56 +0000)]
Provide some info on which case value was not handled in ApiLogin

15 years agouse quickUserCan()
Aaron Schulz [Wed, 20 Aug 2008 19:26:43 +0000 (19:26 +0000)]
use quickUserCan()