Commit graph

33705 commits

Author SHA1 Message Date
Sam Reed
da3b3fbae4 More return type documentation 2011-02-08 23:18:13 +00:00
Sam Reed
e42253eb45 Minor documentation tweaks/improvements 2011-02-08 23:09:22 +00:00
Platonides
b0f5a521ad Remove unused $wgContLang globals after refactoring at r81456 and r81456 2011-02-08 22:40:07 +00:00
Platonides
d7d93a7778 Follow up r81562 2011-02-08 22:33:57 +00:00
Platonides
24fa8b42c2 Unused globals 2011-02-08 22:10:34 +00:00
Platonides
8ce7093775 Use of undefined constant h in line 250. Follow up to r81558 2011-02-08 22:08:58 +00:00
Platonides
002544a5d6 $IP marked as global again in line 1208, function includeExtensions
Unused global $wgHooks in function includeExtensions line 1208
2011-02-08 22:03:01 +00:00
Sam Reed
5d5a3938bb Add missing wfProfileOut( __METHOD__ ); 2011-02-08 22:01:34 +00:00
Raimond Spekking
59bc90cd42 Localisation updates for core and extension messages from translatewiki.net (2011-02-08 20:05:00 UTC) 2011-02-08 21:22:11 +00:00
Platonides
8272ebfe6b Hack to shortcut it to zero until User::getStubThreshold() produces a call to optionUsed() 2011-02-08 17:58:53 +00:00
Platonides
a601b4f677 Revert r81738. Extensions calling clearState() with no mOptions fixed. 2011-02-08 16:32:30 +00:00
OverlordQ
295dbec295 Followup to r81657, you do need a space between the table name and the alias 2011-02-08 15:34:28 +00:00
Alexandre Emsenhuber
b85a785c22 We have OutputPage::showPermissionsErrorPage() for that 2011-02-08 15:19:49 +00:00
Brion Vibber
7d158675b2 Tweak for r79018: fatal errors due to something calling parser clearState when mOptions wasn't defined 2011-02-08 13:31:30 +00:00
Roan Kattouw
6b6fe23e74 Remove $wgServer prepending from remote JS/CSS paths. It's not needed and breaks other-domain $wgStylePath / $wgExtensionAssetsPath settings 2011-02-08 12:34:08 +00:00
Tim Starling
44eefff24c Make SVGMetadataExtractor less noisy when it reads SVGs from Adobe Illustrator. 2011-02-08 12:25:39 +00:00
Roan Kattouw
86a5b6c87f Merge r81725 from 1.17wmf1: add parent constructor call so $IP is set properly 2011-02-08 12:19:59 +00:00
Roan Kattouw
50def0df0c Fix double commas from r81721. This time I actually ran it through php -l before committing *shame* 2011-02-08 12:14:35 +00:00
Roan Kattouw
24714d9c76 Fix r81719: trailing commas 2011-02-08 12:13:31 +00:00
Tim Starling
62afaa0972 Merge r81718 from 1.17wmf1 2011-02-08 12:08:21 +00:00
Roan Kattouw
59cd7e327b Quick fix to make debug mode work with non-standard $wgStylePath. This strips the leading skins/ from each file path and sets $wgStylePath as the remote base path. $IP/skins is needed as a local base path to make stuff work, but I guess that could be changed $wgSkinDirectory 2011-02-08 12:06:32 +00:00
Brion Vibber
88d58abfc3 Don't throw JS error when AJAX license selection is on but there's no license selector because this is a re-upload. 2011-02-08 11:12:26 +00:00
Bryan Tong Minh
70101ff21a Add : to file-deleted-duplicate to force inline link display, as the file can exist on the shared repo. 2011-02-08 10:43:09 +00:00
Roan Kattouw
158c26e49b Reimplement r80900, was lost when code was moved around 2011-02-08 10:26:30 +00:00
Tim Starling
fc6f65a85b Fixes for ResourceLoaderWikiModule r72776. No serious bugs found, do not merge before deployment.
* Specify page titles as strings instead of split NS/DBK, as suggested by Roan on CR. It seemed sensible to me.
* Pass a Title object to getContent() instead of a string, to avoid unnecessary object construction overhead
* "*" and "/" are valid title characters. Check module input for JS comment end tokens.
* Fixed inappropriate conversion to boolean, when checking result of getContent(). Presumably the idea was to omit empty sections and errors, so that's what I did. Maybe an informative error message would be better in the error case.
* Use LinkBatch for selecting multiple page rows instead of Database::makeWhereFrom2d(). 
* Fixed assignment expression.
2011-02-08 06:34:38 +00:00
Tim Starling
9bd321231b Fix bug from r73645: setMsgBlobMtime() requires its timestamp parameter to be a UNIX timestamp, which $row->mr_timestamp isn't. This was causing incorrect versions in the client-side module list, resulting in requests for URLs with "version=NaNNaNNaNTNaNNaNNaNZ", which Michael has been occasionally complaining about. 2011-02-08 05:33:17 +00:00
Brion Vibber
deb14daf52 * (bug 27230) Alignment fix for Vector watch tab icon spinner in IE 7
The CSS for the loading tab had:
	background-position: center 60%;

The 'center' apparently worked for other browsers, but in IE7 it was getting a bit off, and threw the image over a few pixels.
'center' keyword here is allegedly equivalent to 50% which I also tried, but with the same results.

Instead, using the same fixed position that we specify for the regular rest-state icon works:

	background-position: 5px 60%;

Resulting looks ok for me in:
* IE 6 / XP
* IE 7 / XP (fixes regression)
* IE 8 / XP
* Firefox 4b10 / Linux

Shouldn't hurt anything else.
2011-02-08 02:02:16 +00:00
Daniel Friesen
f0fd318a4e Followup r81583, break some of the long lines and centralize the regex. 2011-02-08 01:31:21 +00:00
Daniel Friesen
b4d811d659 Fix bug slightly caused by moving legacy code out of the Skin class. The Article class was calling the legacy Skin::historyLink in a very ugly way (ie: having it's own mTitle, but relying on whatever title just happened to be set on the skin that it grabbed). 2011-02-08 01:15:50 +00:00
Chad Horohoe
9ff0216ee2 Cleanup to r70900, r72481: don't construct new skin objects just because the Title is passed. Use the skin object we already have if the titles are the same 2011-02-08 01:08:06 +00:00
Krinkle
8fa69452fa Follow-up r81660.
(Renaming new jQuery.jsMessage plugin to jQuery.mesageBox() )
2011-02-08 00:22:03 +00:00
Krinkle
0146f3e4f3 Renaming new jQuery.jsMessage plugin to jQuery.mesageBox(). Name was too generic and could be confusing with localization messages.
. Next commit will deal with the contents of the messageBox .js/css files
2011-02-08 00:20:41 +00:00
Sam Reed
849f0890c3 Per fixme on r77597, change to $this->addQuotes() instead of hardcoded quote type 2011-02-07 23:21:53 +00:00
Tim Starling
b7b5b5d3c6 Fix whitespace from r80978 2011-02-07 22:11:27 +00:00
Roan Kattouw
0b24c29294 Followup r81491: use $.client correctly 2011-02-07 21:55:11 +00:00
Brion Vibber
d8b39ef3f6 Fix for renamed stuff that broke jquery.textSelection.js: $.os.name -> $.client.platform 2011-02-07 21:45:19 +00:00
Raimond Spekking
12c10d98b9 Localisation updates for core and extension messages from translatewiki.net (2011-02-07 20:45:00 UTC) 2011-02-07 21:06:29 +00:00
Bryan Tong Minh
afd0f9ca10 Follow-up r81401: fix callback, apparently it was the other way around than I thought. 2011-02-07 18:13:19 +00:00
Alexandre Emsenhuber
7ec47052c6 We have OutputPage::wrapWikiMsg() and OutputPage::addWikiMsg(), so use them 2011-02-07 16:42:41 +00:00
Alexandre Emsenhuber
94aad3b031 Simplify a bit by passing directly the value returned by doUnblock() to showForm() in case of error 2011-02-07 16:17:50 +00:00
Alexandre Emsenhuber
88bf3adf2f Break lines at 80 chars 2011-02-07 15:59:58 +00:00
Tim Starling
0f821f0dcb Use the content language to set the skin direction, instead of the user language. This makes the content readable and the UI messed up, instead of vice versa.
It's not ideal, but at least it's no worse than it was in 1.16. It's preferable because the content area is more likely to have bidirectional text than the UI area. The UI is split up into short strings, generally in a consistent language, so there is less chance of the UBA moving fragments of text around. 

Ideally, the direction of each div would be set according to the language of the text it contains.
2011-02-07 12:39:10 +00:00
Raimond Spekking
6ee7efcea4 Follow-up r81619: Add new message key to maintenance file 2011-02-07 07:32:06 +00:00
Rob Lanphier
a768182823 Followup to r69185, putting the "dir" attribute back on the HTML root element 2011-02-07 03:18:12 +00:00
Brion Vibber
ad50776ead * (bug 18011) Special:FileDuplicateSearch UI fixes and remote file repo support
Fixes:
- now accepts file titles with or without File: prefix instead of demanding you must remove it
- moved result summary line from bottom to top
- added a line telling you no file was found if it wasn't found
- now pulls the reference file's SHA-1 via FileRepo, so can give it a remote file (eg from Commons)
- now pulls duplicate files via the main RepoGroup instead of querying image table manually, so turns up remote duplicates
- dropped the QueryPage standard paging header/footer; file dupe lists are usually very short and it's not worth copying the infrastructure

To make this work, I switched the special page class from using the standard QueryPage paths to doing the query and list itself; QueryPage is currently very tightly tied in to database queries, and doesn't provide a very clean way to drop in an alternative way of looking stuff up (say an API query or just getting a big array you've gotten from somewhere). If that gets improved, this page should be cleaned up to use more of the QueryPage infrastructure again so it's pretty and doesn't scare people coming in to maintain it.

Localization changes:
- added fileduplicatesearch-noresults message
- changed fileduplicatesearch-summary in English master to remove the supplementary line about taking out the 'File:' prefix
2011-02-07 02:35:35 +00:00
Sam Reed
2a0c768fff Followup r81600, put bug fix incorrect BUG FIX section, rather than the API section, which is wrong 2011-02-07 00:00:44 +00:00
Sam Reed
41c35b3aa4 * (bug 27205) aiprop=metadata and aiprop=parsedcomment need help text
Refactored code out to reduce duplication (and hence, mismatches like this)
2011-02-06 23:59:03 +00:00
Bryan Tong Minh
b20a0d3327 Follow-up r81612, disable $wgAllowAsyncCopyUploads 2011-02-06 22:53:07 +00:00
Bryan Tong Minh
9b35539f7e Cleanup MimeMagic: Add public identifier to functions; kill error operator; Cleanup function documentation; Manual stylize 2011-02-06 22:47:10 +00:00
Bryan Tong Minh
e942dc69fc Per CR r66438 and IRC, revert User::leaveNewMessage for now. Copied the function and stripped it down for use in NewUserMessage. Could probably need some cleanup. 2011-02-06 22:44:01 +00:00