Bryan Tong Minh [Sat, 27 Nov 2010 18:51:17 +0000 (18:51 +0000)]
(bug 26125) prop=imageinfo&iiprop=size now returns the page count if the file is a multi-page file
Also fix blatant lie in File::pageCount()
Sam Reed [Sat, 27 Nov 2010 15:35:57 +0000 (15:35 +0000)]
Revert r77358, didn't have intended affect, and broke unittests
Sam Reed [Sat, 27 Nov 2010 15:25:57 +0000 (15:25 +0000)]
Create instance of Maintenance class after AutoLoader and Defines
Reason: We might want to use class stuff in the Maintenance constructor (re r77355)
Victor Vasiliev [Sat, 27 Nov 2010 14:55:54 +0000 (14:55 +0000)]
Fix r77309 per CR: use appropriate function in ResourceLoaderWikiModule to check the validity of CSS user subpage.
Sam Reed [Sat, 27 Nov 2010 14:18:54 +0000 (14:18 +0000)]
$options doesn't exist in PurgeList
Change to getOptions, and addOption in Constructor
Antoine Musso [Sat, 27 Nov 2010 11:29:23 +0000 (11:29 +0000)]
Test normalizeForSearch and commafy
See bug 23156 and r64981
Raimond Spekking [Fri, 26 Nov 2010 21:52:21 +0000 (21:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-26 21:27:00 UTC)
Platonides [Fri, 26 Nov 2010 19:16:28 +0000 (19:16 +0000)]
Fix per r76545 CR.
Platonides [Fri, 26 Nov 2010 15:47:51 +0000 (15:47 +0000)]
Follow up r77171
Sam Reed [Fri, 26 Nov 2010 12:06:50 +0000 (12:06 +0000)]
Set blank $fname
Philip Tzou [Fri, 26 Nov 2010 07:48:41 +0000 (07:48 +0000)]
Add a new method 'spamPageWithContent' to class EditPage. User can be allowed to view his/her diff and submitted text when hit the spam-filter. The changes to extension SpamBlacklist will be followed up soon.
Antoine Musso [Fri, 26 Nov 2010 07:45:12 +0000 (07:45 +0000)]
doc comments: fix grammar and return parameter. fu r77296
Mark A. Hershberger [Fri, 26 Nov 2010 02:37:28 +0000 (02:37 +0000)]
revert r77271 since it was an expensive fix to a non-existant problem.
Mark A. Hershberger [Fri, 26 Nov 2010 01:16:52 +0000 (01:16 +0000)]
follow r77243 and r77315 which claimed to fix, but didn't -- fix the unit test was that accidently hide the bug
Mark A. Hershberger [Fri, 26 Nov 2010 00:21:36 +0000 (00:21 +0000)]
follow r77243 -- unit test was coded to hide the bug... doh! fix it up
Victor Vasiliev [Thu, 25 Nov 2010 23:12:05 +0000 (23:12 +0000)]
* Show "skin does not exist error" only when the skin is inputted in the wrong case. This seems to be the original intention. Otherwise it renders the warning on the completely legitimate subpages with user scripts.
* Deprecate isValidUserCssJSSubpage() as having a very confusing title. User scripts *are* valid user JS subpages.
Sam Reed [Thu, 25 Nov 2010 22:24:28 +0000 (22:24 +0000)]
More reversion of r77297, 2 of 2 commits to keep it readable in CR (hopefully)
Sam Reed [Thu, 25 Nov 2010 22:24:11 +0000 (22:24 +0000)]
More reversion of r77297, 1 of 2 commits to keep it readable in CR (hopefully)
Sam Reed [Thu, 25 Nov 2010 22:22:53 +0000 (22:22 +0000)]
Revert r77297, Won't be reverting MimeMagic
Mainly whitespace reverts here
Raimond Spekking [Thu, 25 Nov 2010 20:06:18 +0000 (20:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-25 19:50:00 UTC)
Antoine Musso [Thu, 25 Nov 2010 20:01:34 +0000 (20:01 +0000)]
revert r76464
* mixed style changes and variable removing
* logic changes
* useful comments removed
Antoine Musso [Thu, 25 Nov 2010 19:47:24 +0000 (19:47 +0000)]
consistent incr() return value in case of error. follow up 74579
Roan Kattouw [Thu, 25 Nov 2010 15:12:04 +0000 (15:12 +0000)]
Fix indentation in Block::infinity()
Roan Kattouw [Thu, 25 Nov 2010 12:34:21 +0000 (12:34 +0000)]
Fix r77261 by adding the parentheses already added in 1.16wmf4 in r77264
Alexandre Emsenhuber [Thu, 25 Nov 2010 09:38:04 +0000 (09:38 +0000)]
Fix for r77231: correct variable name, was throwing fatal errors
Raimond Spekking [Thu, 25 Nov 2010 08:25:12 +0000 (08:25 +0000)]
Remove redundant link 'Existing blocks for $1' because the blog log is shown since r16287
And in case the user is already blocked the message "$1 is already blocked. Do you want to change the settings?" is shown
Mark A. Hershberger [Thu, 25 Nov 2010 07:39:51 +0000 (07:39 +0000)]
Give SQLite a translation for MySQL's UNIX_TIMESTAMP() functions. Pg will probably need something similar.
Roan Kattouw [Wed, 24 Nov 2010 22:50:46 +0000 (22:50 +0000)]
Fix strange bug in ImageMagick call: if $params['comment'] was set to '' (which is explicitly done by the code in certain cases), the command line will contain -set comment -depth 8, causing the comment to be set to '-depth' and the file '8' to be read. Fix this by not adding the -set comment part at all if the comment is empty
Raimond Spekking [Wed, 24 Nov 2010 21:26:50 +0000 (21:26 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-24 21:05:00 UTC)
Mark A. Hershberger [Wed, 24 Nov 2010 19:52:59 +0000 (19:52 +0000)]
followup r65504 — actually check that we hav errors before returnning from checkUserBlock when short circuited.
Neil Kandalgaonkar [Wed, 24 Nov 2010 19:05:32 +0000 (19:05 +0000)]
more debug log messages for errors which have to be cryptic (we don't want people knowing paths on the server)
Neil Kandalgaonkar [Wed, 24 Nov 2010 18:59:16 +0000 (18:59 +0000)]
generate debug messages, trying to fix a problem on testwiki
Alexandre Emsenhuber [Wed, 24 Nov 2010 15:40:25 +0000 (15:40 +0000)]
Moved switches in Special:Unusedimages and Special:Ancientpages to extract a unix timestamp from a fielf to DatabaseBase and related classes to avoid code duplication
Alexandre Emsenhuber [Wed, 24 Nov 2010 12:24:14 +0000 (12:24 +0000)]
$wgJQuery* variables were removed with the merge of the resource loader
Alexandre Emsenhuber [Wed, 24 Nov 2010 11:45:01 +0000 (11:45 +0000)]
WikiImport no longer returns a WikiError since the rewrite to use XmlReader
Sam Reed [Tue, 23 Nov 2010 23:58:57 +0000 (23:58 +0000)]
Spaces to tab, add a couple of braces
Sam Reed [Tue, 23 Nov 2010 23:53:49 +0000 (23:53 +0000)]
* Sysops now have the "suppressredirect" right by default
Platonides [Tue, 23 Nov 2010 23:30:49 +0000 (23:30 +0000)]
Release notes for r77171, which was slightly based on t.glaser
patch at http://bug-attachment.wikimedia.org/attachment.cgi?id=7736
Alexandre Emsenhuber [Tue, 23 Nov 2010 22:42:24 +0000 (22:42 +0000)]
WikiImport no longer returns a WikiError since the rewrite to use XmlReader
Bryan Tong Minh [Tue, 23 Nov 2010 22:05:27 +0000 (22:05 +0000)]
(bug 25174) Add equal sign to boolean parameters in examples, so that the examples work immediately when posted
Sam Reed [Tue, 23 Nov 2010 21:43:56 +0000 (21:43 +0000)]
Explicit variable definition, tweak documentation
Sam Reed [Tue, 23 Nov 2010 21:37:27 +0000 (21:37 +0000)]
* (bug 26089) add block expiration to blockinfo
Antoine Musso [Tue, 23 Nov 2010 20:39:04 +0000 (20:39 +0000)]
dieout() now default to empty text. follow up r76165
Raimond Spekking [Tue, 23 Nov 2010 20:20:45 +0000 (20:20 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-22 20:11:00 UTC)
Sam Reed [Tue, 23 Nov 2010 19:57:04 +0000 (19:57 +0000)]
testRegisteringNullModuleThrowsAnException - $this->markTestIncomplete( "Broken by r77011" );
Just to shut codurr up
Ilmari Karonen [Tue, 23 Nov 2010 19:26:36 +0000 (19:26 +0000)]
bug 9675: sitemap-index doesn't include full location path
Platonides [Tue, 23 Nov 2010 18:25:00 +0000 (18:25 +0000)]
Bug 25451: time and date calculation in 32-bit
Follow up r75761. Now calculation is right (passes all tests)
on php 32 bits when using PHP >= 5.2
without prejudice to PHP 32/64 bits < 5.2 on the 32 bit range
(regardless of architecture)
Chad Horohoe [Tue, 23 Nov 2010 16:11:28 +0000 (16:11 +0000)]
rm unused and (seemingly) broken factory function
Chad Horohoe [Tue, 23 Nov 2010 16:01:09 +0000 (16:01 +0000)]
(bug 26068) Document $wgUseETag better
Max Semenik [Tue, 23 Nov 2010 14:30:01 +0000 (14:30 +0000)]
Fixed another wrong function name
Max Semenik [Tue, 23 Nov 2010 14:08:46 +0000 (14:08 +0000)]
Fix PHP 5.2 compatibility for r77144
Raimond Spekking [Tue, 23 Nov 2010 12:57:27 +0000 (12:57 +0000)]
(bug 21911) Per Tim Starling's comment #10: Remove hard coded limit for long page warning.
New message [[MediaWiki:Longpage-hint]] (empty per default) can be used instead.
Parameters: $1 shows the formatted textsize in Byte/KB/MB, $2 is the raw number of the textsize in Byte for calculation with PerserFunctions
(yes, I know that PerserFunctions are not in core, unfortunately, but every installation I know or attend have it)
Max Semenik [Tue, 23 Nov 2010 12:27:02 +0000 (12:27 +0000)]
Removed LoadBalancer::getGroupIndex(): deprecated since r32578, no callers
Max Semenik [Tue, 23 Nov 2010 11:21:00 +0000 (11:21 +0000)]
Fixed $fname in some places
Max Semenik [Tue, 23 Nov 2010 11:14:48 +0000 (11:14 +0000)]
This indexInfo() belongs to MySQL
Alexandre Emsenhuber [Tue, 23 Nov 2010 10:04:38 +0000 (10:04 +0000)]
* (bug 26075) ApiDelete.php now calls correctly ArticleDelete hook
Tim Starling [Tue, 23 Nov 2010 02:39:04 +0000 (02:39 +0000)]
In wfEscapeWikiText(), add "}}" to the list of things to escape, for callers that produce template invocations, as in r77128.
Krinkle [Tue, 23 Nov 2010 01:36:58 +0000 (01:36 +0000)]
adding isEmpty to jQuery prototype
Krinkle [Tue, 23 Nov 2010 00:40:45 +0000 (00:40 +0000)]
* Swapping enableForOther locked input-field from disabled to readonly. No need to block users from selecting the text inside, only block editing it field.
* On top of that, also using javascript to hide the input-field if/when not needed, untill needed (PHP has a backup check to only use this value if the radio-button was on 'other')
* Escaping special html characters in the attributes. The message for .mw-help-field-hint contained the phrase " content pages, in a "'''project namespace'''". " which (raw, unescaped) ends the attribute right after the "a". Fixed now.
Krinkle [Tue, 23 Nov 2010 00:04:02 +0000 (00:04 +0000)]
Pressing enter in an input field doesn't trigger display:none elements in WebKit-browsers. Either put Back-button after Continue (visually not a good choise)... or keep the current double-button-first-hidden approach but in a different way that doesn't use display:none. Doing the latter for now.
Krinkle [Mon, 22 Nov 2010 23:55:37 +0000 (23:55 +0000)]
whitespace commit (removing trailing space)
Krinkle [Mon, 22 Nov 2010 23:52:59 +0000 (23:52 +0000)]
Putting .config-page-list (sidebar nav) floating to the right as part of the page (instead of floating outside the page content). This takes away the dead white space on longer pages by making it grey instead of white (previously this made the page look very unorganized and off-grid in more narrow windows). This also fixes a layout bug in Safari where the tops didn't line up.
Krinkle [Mon, 22 Nov 2010 23:40:07 +0000 (23:40 +0000)]
fixing a TypeError when the function would be called without any arguments
Raimond Spekking [Mon, 22 Nov 2010 20:38:23 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-22 20:22:00 UTC)
Platonides [Mon, 22 Nov 2010 16:08:12 +0000 (16:08 +0000)]
Move storing of $db down to SearchEngine
Fixes the r76809 issue of SearchDbTest not being marked as requiring a Database.
Platonides [Mon, 22 Nov 2010 16:03:56 +0000 (16:03 +0000)]
Fix typo
Alexandre Emsenhuber [Mon, 22 Nov 2010 15:36:17 +0000 (15:36 +0000)]
Fix a doxygen warning
Siebrand Mazeland [Mon, 22 Nov 2010 14:09:29 +0000 (14:09 +0000)]
Remove Arabic fallback. Shouldn't be RTL.
Sam Reed [Sun, 21 Nov 2010 23:18:52 +0000 (23:18 +0000)]
Tweak param documentation
Alexandre Emsenhuber [Sun, 21 Nov 2010 21:35:30 +0000 (21:35 +0000)]
* Break lines at 80 chars
* Remove trailing whitespaces
Raimond Spekking [Sun, 21 Nov 2010 20:20:38 +0000 (20:20 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-21 19:57:00 UTC)
Max Semenik [Sun, 21 Nov 2010 19:56:51 +0000 (19:56 +0000)]
Refactoring of *Field classes:
* Made them all implement one common interface (might add more functions to it later)
* Moved MySQLField to DatabaseMysql.php
* Renamed nullable() to isNullable()
* Removed maxLength() from:
** SQLiteField: makes no sense
** MySQLField: doesn't do what people may think, useless for this class' purpose of assisting querying the DB schema
Sam Reed [Sun, 21 Nov 2010 17:27:13 +0000 (17:27 +0000)]
Per r77072 CR, followup r66872 (seemingly my crappy code from 5 months ago) like r77079
Alexandre Emsenhuber [Sun, 21 Nov 2010 17:02:12 +0000 (17:02 +0000)]
Per Reedy, follow-up to r77072: don't use array_merge() to add just one item
Platonides [Sun, 21 Nov 2010 16:26:23 +0000 (16:26 +0000)]
Follow up r77058 per CR
Alexandre Emsenhuber [Sun, 21 Nov 2010 15:44:46 +0000 (15:44 +0000)]
Fix path
Platonides [Sun, 21 Nov 2010 15:20:04 +0000 (15:20 +0000)]
Add UploadStashFile
Platonides [Sun, 21 Nov 2010 14:35:39 +0000 (14:35 +0000)]
Add PhpHttpRequest, added in r60811
Alexandre Emsenhuber [Sun, 21 Nov 2010 14:04:10 +0000 (14:04 +0000)]
* (bug 26006) prop=langlinks now allows obtaining full URL
Antoine Musso [Sun, 21 Nov 2010 12:03:17 +0000 (12:03 +0000)]
Note version and revision deprecating wfGetMimeMagic (fu r68837)
Antoine Musso [Sun, 21 Nov 2010 11:52:13 +0000 (11:52 +0000)]
Note about CC Licence marks (follow up r66559)
Aaron Schulz [Sun, 21 Nov 2010 10:49:54 +0000 (10:49 +0000)]
*(bug 25920) Moved forward ref to a back ref to really get v6 regex to compile on older PCRE versions. Works around PCRE 8 nested named ref bug that killed r76928.
* Added another simple v6 assertion
Krinkle [Sat, 20 Nov 2010 21:07:34 +0000 (21:07 +0000)]
class portlet -> class portal (Vector). #mw-panel's class for the items themselfs is also different in Vector. Now the sidebar finally looks the way it should (like Vector-skin in-wiki)
Krinkle [Sat, 20 Nov 2010 20:24:48 +0000 (20:24 +0000)]
Making path to bullet.gif in config.css relative to it self instead of absolute.
* Installer has a 'Status of 404 (Not Found)' (/w/skins/skins/vector/images/bullet.gif). Source of this problem is "str_replace( 'images/', '../skins/vector/images/', );" on line 99 of WebInstallerOutput.php::GetCSS() which transforms this line:
list-style-image: url(../skins/common/images/bullet.gif);
into this:
list-style-image: url(../skins/common/../skins/vector/images/bullet.gif);
all other stylesheets do it relative also, therefor changing this accordingly to:
list-style-image: url(images/bullet.gif);
But since the installer does not load them directly but includes them from a different path, the str_replace() has been changed from a single replace for both files to two replaces, since they are not both in /vector/ images, config.css is in /common/ and it's images are in /common/images, not /vector/images. Fixed now.
Krinkle [Sat, 20 Nov 2010 20:09:05 +0000 (20:09 +0000)]
Vector has 'body' as portlet class (Follow-up r76880), Monobook had 'pBody', also removing redundant </div>.
* #mw-panel > div.portlet > div.body is the CSS rule, didn't work before causing the rule to hide list bullets to be ignored
* 'Unmatched </div> encountered. Ignoring tag.'-error solved
Krinkle [Sat, 20 Nov 2010 19:51:26 +0000 (19:51 +0000)]
Follow-up on r76987 (and it's comment) - adding dependency to make the script-call in mw.util work
Platonides [Sat, 20 Nov 2010 15:19:51 +0000 (15:19 +0000)]
Revert r76394 after r76806 and document in getInstallSteps() the existance of such messages.
Raimond Spekking [Sat, 20 Nov 2010 11:54:40 +0000 (11:54 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-11-20 11:25:00 UTC)
Alexandre Emsenhuber [Sat, 20 Nov 2010 11:14:11 +0000 (11:14 +0000)]
Don't add newlines and tabs in the documentation, wordwrap() already does this
Alexandre Emsenhuber [Sat, 20 Nov 2010 11:11:20 +0000 (11:11 +0000)]
* (bug 26023) Corrected deleteBacth.php's documentation
Tim Starling [Sat, 20 Nov 2010 07:05:02 +0000 (07:05 +0000)]
Per CR r77020, followup to r77046: add a constant so that extensions can more easily support versions of MediaWiki without $wgResourceModules. But note that the ClickTracking style of registration would have worked as well, since an array index write works even if the variable is unset.
Tim Starling [Sat, 20 Nov 2010 07:01:14 +0000 (07:01 +0000)]
Fix typo in doc comment.
Trevor Parscal [Fri, 19 Nov 2010 23:01:53 +0000 (23:01 +0000)]
Fixed order of statements - function was referred to before it was defined.
Jack Phoenix [Fri, 19 Nov 2010 21:23:50 +0000 (21:23 +0000)]
wrap the redirect message (arrow image + target page name) into a div that has the class "redirectMsg" so that the redirection arrow can be customized with on-wiki CSS instead of having to overwrite skins/common/images/redirect(ltr|rtl).png
Max Semenik [Fri, 19 Nov 2010 20:34:44 +0000 (20:34 +0000)]
SQLite types can be non-nullable
Markus Glaser [Fri, 19 Nov 2010 14:12:54 +0000 (14:12 +0000)]
sample configuration to run selenium against a grid server
Markus Glaser [Fri, 19 Nov 2010 14:12:07 +0000 (14:12 +0000)]
fixed broken path
Alexandre Emsenhuber [Fri, 19 Nov 2010 11:49:47 +0000 (11:49 +0000)]
@fixme command doesn't exist in doxygen
Alexandre Emsenhuber [Fri, 19 Nov 2010 10:53:08 +0000 (10:53 +0000)]
* (bug 25987) prop=info&inprop=watched now also works for missing pages
Tim Starling [Fri, 19 Nov 2010 10:41:06 +0000 (10:41 +0000)]
* Made Resources.php return a pure-data array instead of an ugly mix of data and code. This allows the class code to be lazy-loaded with the autoloader, for a performance advantage especially on non-APC installs. And using the convention where if the class is omitted, ResourceLoaderFileModule is assumed, the registration code becomes shorter and simpler.
* Modified ResourceLoader to lazy-initialise module objects, for a further performance advantage.
* Deleted ResourceLoader::getModules(), provided getModuleNames() instead. Although the startup module needs this functionality, it's slow to generate, so to avoid misuse, it's better to provide a foolproof fast interface and let the startup module do the slow thing itself.
* Modified ResourceLoader::register() to optionally accept an info array instead of an object.
* Added $wgResourceModules, allowing extensions to efficiently define their own resource loader modules. The trouble with hooks is that they contain code, and code is slow. We've been through all this before with i18n. Hooks are useful as a performance tool only if you call them very rarely.
* Moved ResourceLoader settings to their own section in DefaultSettings.php
* Added options to ResourceLoaderFileModule equivalent to the $localBasePath and $remoteBasePath parameters, to allow it to be instantiated via the new array style. Also added remoteExtPath, which allows modules to be registered before $wgExtensionAssetsPath is known.
* Added OutputPage::getResourceLoader(), mostly for debugging.
* The time saving at the moment is about 5ms per request with no extensions, which is significant already with 6 load.php requests for a cold cache page view. This is a much more scalable interface; the relative saving will grow as more extensions are added which use this interface, especially for non-APC installs.
Although the interface is backwards compatible, extension updates will follow in a subsequent commit.