Commit graph

294 commits

Author SHA1 Message Date
awjrichards
c29fd59775 Big oops - merged to wrong branch.
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"

This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
awjrichards
ee0d3d330f Revert to arbitrarily old point before initial remote branch creation to help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
Liangent
8c65834425 Add new message 'brackets' and use it to kill some hardcoded []s.
Change-Id: Idae8d9201d1c291316ab520d204ae8c5cde2d890
2012-05-30 14:40:11 +08:00
Alexandre Emsenhuber
1082c71e9b Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Ibe7815124d6915792dcbb150d01df21d9b22b0b0
2012-05-21 21:56:39 +02:00
Niklas Laxström
4d94927715 Restore many missing spaces from r112589
Also fixed indentation by spaces
And please don't ever use != ''. It's misleading.
2012-03-01 10:42:02 +00:00
Siebrand Mazeland
481943429e (bug 34702) More localised parentheses. Patch contributed by Yusuke Matsubara. 2012-02-28 11:56:59 +00:00
Krinkle
5d68836825 [mediawik.special.changeslist] Remove ugly arrow swapping hack
* Use CSS and change the background image, instead of displaying 2 <img> tags and hiding one based on the parent element's class
* touches bug 17616 a bit, although it doesn't address the focus issue yet, but does improve the overal structure of this module
* Also speeds up by:
- Outputting less markup
- Having 1 embedded images in the CSS file instead of (N changes)*<img> tags
* jquery.makeCollapsible:
2012-02-27 00:03:14 +00:00
Sam Reed
c052fc3b7b Documentation followups from lastnight 2012-02-10 15:37:33 +00:00
Sam Reed
76246b9bf5 More return documentation 2012-02-09 21:33:27 +00:00
Sam Reed
7b25f8231f Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
2012-02-09 19:30:01 +00:00
Antoine Musso
fc6bc233be Fix doxygen docs before REL1_19 branching 2012-02-01 20:53:38 +00:00
Sam Reed
b4a276e72e Documentation
Wrap some long lines
2012-01-12 19:03:32 +00:00
Antoine Musso
fea77a9117 enhance size tooltip on changelist
follow r104085
2012-01-04 11:33:35 +00:00
Sam Reed
5d39b698b6 Add braces
Fix documentation
2011-12-31 00:21:27 +00:00
Niklas Laxström
e4183b1f59 Non oldrc change lists were not displaying the names of new log types properly. While at it, drop support for displaying very old style log entries 2011-12-29 12:58:43 +00:00
Jeroen De Dauw
a62e242a30 revert r106095, fix apparently not this simple 2011-12-13 21:34:16 +00:00
Jeroen De Dauw
29e81897f9 logName -> getName 2011-12-13 21:17:32 +00:00
Jeroen De Dauw
49cdca93be add missing deprecation notices and added deprecation version to existing ones 2011-12-13 05:19:05 +00:00
John Du Hart
54b9769920 Followup r100722, show the full size of the page in the tooltip 2011-11-23 21:01:03 +00:00
John Du Hart
216d661d3b Bug 29524 - Rename RequestContext::getLang to getLanguage
I'll be amazed if this doens't break any tests.
2011-11-21 16:13:21 +00:00
Aaron Schulz
33a86e678a Made ChangesList generate page links with rcid=x for new pages when $wgUseNPPatrol is on (not just $wgUseRCPatrol) 2011-11-19 05:37:24 +00:00
Daniel Friesen
32b4dd8a77 Refactor core from Title::getLinkUrl to Title::getLinkURL to match Title's getLocalURL and getFullURL.
This shouldn't cause any back or forward compat issues since php treats method names as case-insensitive. So this change shouldn't break any old extensions, and extensions are free to start using getLinkURL and won't have any issue breaking with old versions of MediaWiki.
2011-11-10 03:27:55 +00:00
Amir E. Aharoni
c93dfd61fb Followup to r101120, replaced hardcoded parentheses with the 'parentheses' message. 2011-10-28 08:04:58 +00:00
Amir E. Aharoni
08513967f9 Adding dirmark after changed bytes to prevent mixing with LTR usernames and summaries. 2011-10-28 06:04:22 +00:00
Derk-Jan Hartman
dd50a31d90 Follow up to r79085. Fixes bug 31408.
There was a typo, causing the minoredit tag not to show up in the enhanced recentchanges.
2011-10-22 19:50:43 +00:00
Amir E. Aharoni
7b85c7be51 Made the arrow point in the correct direction according to the user's language, which may be different from the wiki language. 2011-10-13 13:43:02 +00:00
Alexandre Emsenhuber
0da17a29c3 * Added User paremeter to Revision::userCan(), Revision::userCanBitfield(), LogEventsList::userCan(), LogEventsList::userCanBitfield(), File::userCan() and its subclasses so that they can check against any user instead of always $wgUser.
* Updated callers that have a context or may use another user than $wgUser
* Revision::getUser(), Revision::getUserText(), Revision::getComment() and Revision::getText() also have a User as parameter, but it will be used only when Revision::FOR_THIS_USER is passed in the first parameter
2011-10-12 15:09:04 +00:00
Amir E. Aharoni
231dbc7d46 Followup to r98839 and r98851 according to Nikerabbit's suggestions: Xml -> Html and some whitespace. 2011-10-05 06:45:11 +00:00
Amir E. Aharoni
11a4a70a17 Followup to r98847. Replacing .= with = 2011-10-04 07:33:12 +00:00
Amir E. Aharoni
c10d3fe3da Followup to r98839. Removed 'escape' from wfMsgExt (suggested by Nikerabbit); wrote full class names (suggested by Krinkle). 2011-10-04 03:08:49 +00:00
Amir E. Aharoni
e5c159ae2e The general fix is setting the directionality of added or removed bytes in recent changes. It is always supposed to be LTR.
Details:
* Spelling of variable names and comments: formated -> formatted
* Replaced "<$tag" with Xml::element
* Added a dirmark before the username (otherwise the added or removed appear on the other side)
2011-10-04 00:12:09 +00:00
Niklas Laxström
610db6c338 * (bug 30245) Use the correct way to construct a log page title 2011-09-21 09:41:40 +00:00
Aaron Schulz
bf224c75c0 Removed duplication in insertArticleLink 2011-09-19 21:55:17 +00:00
Niklas Laxström
175cdae687 My changes in r96548 were too radical, stripping of edit commits (oops!) and rollback links on some places. 2011-09-19 12:36:58 +00:00
Antoine Musso
4a38013f70 revert r97203
That code was not really meant to work :-D
2011-09-16 06:13:57 +00:00
Antoine Musso
16acae654b New hook RecentChangesListRecentChangesLine which let you customize an
entire recent changes line for user with 'Enhanced recent changes' option
It is equivalent to the existing hook OldChangesListRecentChangesLine

Reported by finlay on IRC.
2011-09-15 20:57:43 +00:00
Daniel Friesen
391736c081 Use IContextSource instead of RequestContext inside type hints and instanceof checks. All we need is something that implements IContextSource and it's possible we may want to implement types of RequestContext that don't directly extend RequestContext but are perfectly valid to be passed to classes. 2011-09-15 15:19:49 +00:00
Niklas Laxström
55523ec455 Already removed this support for very old move log entries from plain changes list, now also from enhanced. 2011-09-12 14:46:17 +00:00
Niklas Laxström
0e6ebd966e Improve r96548: fixed one fatal, restored user tool links and removed a little duplication 2011-09-08 10:13:01 +00:00
Niklas Laxström
81b3ae4aaf Update ChangesList and derivatives to use LogFormatter.
This diff is a bit ugly. There is lots of duplication in ChangesList code.
Hopefully it is little better now, when most of the formatting is in LogFormatter.
2011-09-08 09:15:59 +00:00
Rotem Liss
eac74f1650 Add direction mark in recent changes and in protection log summary. 2011-08-02 09:09:23 +00:00
Sam Reed
ead9055a62 Update code comments that point to 1.18 to point to 1.19 2011-07-18 23:01:08 +00:00
Alexandre Emsenhuber
7d9c7fde30 * Changed Special:RecentChanges and Special:RecentChangesLinked to use the local context instead of global variables
* Added context to ChangesList
* Added new factory for ChangesList and subclasses in ChangesList::newFromContext() and modified ChangesList::newFromUser() to call it with the main context since anyway User::getSkin() return the Skin from the main context, so this won't change anything but the User::getOption() call
* Updates Special:RecentChanges and Special:Watchlist to use that new function
* Call Linker methods statically
* Use Linker::linkKnown() instead of Linker::link() where possible
* In Special:Watchlist: Use wfMessage() instead of OutputPage::addWikiMsgArray() with the third parameter
2011-07-17 09:25:50 +00:00
Robin Pepermans
7c624542f0 (bug 6100; follow-up to r91315) Being bold and removing $wgBetterDirectionality (and dependent wfUILang) in core, as most or all work is finished.
Also:
* Introduce classes mw-float-end, mw-float-start so we don't have to use inline css depending on wfUILang()/$wgLang (see HistoryPage and SpecialFileDuplicateSearch)
* Add direction mark to protection log
* Remove specialpageattributes as it is obsoleted by this commit (also fixes bug 28572)
* Add two direction marks in wfSpecialList, which makes ltr links on rtl wiki (and vice versa) display nicely as well (only on those special pages however)
* Revert r91340 partially: use mw-content-ltr/rtl class anyway in shared.css. Both ways have their [dis]advantages...
* Set the direction of input fields by default to the content language direction (except buttons etc.) in shared.css
2011-07-06 02:26:06 +00:00
Robin Pepermans
8adc8976b6 Follow-up r91167: that was for history of course.. this one is for recentchanges etc. 2011-06-30 14:10:53 +00:00
Platonides
690af6341e Remove unused global $wgContLang 2011-06-22 21:36:42 +00:00
Robin Pepermans
6d894f7872 Change $wgContLang->getDirMark() to wfUILang()->getDirMark() (improvement when $wgBetterDirectionality is enabled) 2011-06-19 14:27:55 +00:00
Sam Reed
bdf84cb20e Swap else if for elseif
Trimming trailing whitespace also

Doing in 3 commits, so hopefully reviewable in CR...
2011-06-17 16:03:52 +00:00
Mark A. Hershberger
0a49fd69b0 Misc EOL w/s and spaces-instead-of-tabs fixes. One day I'll get around to nagging people for this stuff, but for now, I'll JFDI myself. 2011-05-25 15:39:47 +00:00
Niklas Laxström
26281d4753 Quick unbreak r88495: initialising the variable caused it not to be filled with messages 2011-05-21 20:39:31 +00:00