Commit graph

593 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
a682b7335a Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: I0db3461139284edcb6ac02923eb83d54e6756ffb
2012-05-12 22:33:51 +02:00
Alexandre Emsenhuber
d3fecf5ac6 Added Linker::getInvalidTitleDescription() to display invalid title entries in various places.
This method will use two new messages 'invalidtitle-knownnamespace' and 'invalidtitle-unknownnamespace' depending on the fact that the given namespace number exists or not.
I did put that method in Linker because I plan to use it in various places, notably in other QueryPage and Pager subclasses.

Change-Id: I13e7cdc2c0a8e86dc5e4b144b6012f3864d2ec06
2012-05-07 18:25:52 +02:00
Amir E. Aharoni
4b439bb6ad Bug 35034 - moved autocomment-prefix between the prefix and the arrow. Follow up to r109086. 2012-03-13 23:09:06 +00:00
Siebrand Mazeland
481943429e (bug 34702) More localised parentheses. Patch contributed by Yusuke Matsubara. 2012-02-28 11:56:59 +00:00
Siebrand Mazeland
fa53862b3f Wow. Messy. Follow-up r112426, r112424: Fix incorrect calls. Should have been escaped() instead of escape(). 2012-02-26 12:11:35 +00:00
Siebrand Mazeland
7e7079374f Follow-up r112424: Per IAlex on IRC: Use escape() instead of plain() for improved security. 2012-02-26 12:07:21 +00:00
Siebrand Mazeland
fbe974a6f8 Follow-up r112410, r112412: Cheaper processing using plain(). 2012-02-26 11:49:01 +00:00
Siebrand Mazeland
50eabdff63 Follow-up r112410: (bug 34702) Use localised parentheses for comment, too. 2012-02-25 20:53:54 +00:00
Siebrand Mazeland
68643f5079 (bug 34702) Use localised parentheses in Special:Contributions. 2012-02-25 20:42:08 +00:00
Andrew Garrett
a548e4b595 Revert r97042, causes bug 34432 2012-02-17 22:15:17 +00:00
Sam Reed
2ec09c5165 More return documentation 2012-02-09 21:35:05 +00:00
Sam Reed
0a626db6e1 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:29:36 +00:00
Sam Reed
85bbb0b080 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 18:01:10 +00:00
Antoine Musso
fc6bc233be Fix doxygen docs before REL1_19 branching 2012-02-01 20:53:38 +00:00
Amir E. Aharoni
9691721f65 Follow up to r105855 - now with updated phpunit tests. 2012-01-17 00:17:55 +00:00
Sam Reed
d580226891 Revert out r108882 2012-01-14 00:25:26 +00:00
Sam Reed
a8c1d130d9 Recommitting r108367 to break unit tests as phpunit on ubuntu seems FUBAR'd again
Will revert after
2012-01-14 00:09:58 +00:00
Antoine Musso
f3a96d17ac revert r108367 : breaks tests
When doing a change that break tests, update the tests in the same
commit. That makes the change more obvious and let us merge in
another branch easily.
2012-01-09 08:41:25 +00:00
Amir E. Aharoni
43c511f07f Fix the regression pointed out by Robin in r105855. 2012-01-08 21:07:27 +00:00
Siebrand Mazeland
449864b782 Add additional parameter $altUserName to Linker::userLink to make it possible to override the displayed user name.
Renamed $userText to $userName following Nikerabbit's advice.
2012-01-05 09:33:46 +00:00
Brion Vibber
344319f428 Revert r107773 - increases parsercache fragmentation without clear benefit 2012-01-03 21:20:35 +00:00
Alexandre Emsenhuber
9dbf69692c * (bug 32686) Tooltip on links to non-existing pages are now always in user's language
Fixed this by "abusing" of the $options parameter of Linker::link() to pass the Language object (as we did for wfMsgExt()), has the two following advantages:
* The tooltip is displayed in the requested language instead of depending on $wgLang
* The usage of the Language object is detected in the ParserOptions, thus the parser cache key will not have "*" for the language
2012-01-01 14:01:49 +00:00
Alexandre Emsenhuber
585141ece9 * Use Linker::getRevDeleteLink() where possible to remove code duplication
* Pass the User object to Revision::userCan() in Linker::getRevDeleteLink()
* Return the result Linker::revDeleteLinkDisabled() in Linker::getRevDeleteLink() instead of storing it in a variable that will not be used
2011-12-28 18:41:36 +00:00
Jeroen De Dauw
d117ac68d5 make docs more clear, method can only be used as is since 1.18, not 1.16 2011-12-13 20:45:35 +00:00
Raimond Spekking
1d1656de12 Partly revert r105985 for now: Flooding of translatewiki.net log/channel:
PHP Notice: Use of Linker::makeLinkObj was deprecated in MediaWiki 1.16. [Called from call_user_func_array in (internal function)] in /www/w/includes/GlobalFunctions.php on line 3520
PHP Notice: Use of Linker::makeKnownLinkObj was deprecated in MediaWiki 1.16. [Called from call_user_func_array in (internal function)] in /www/w/includes/GlobalFunctions.php on line 3520
2011-12-13 10:36:16 +00:00
Antoine Musso
bf006dd4f3 bring back Linker::tooltip()
Was marked deprecated with r42702 although that helper makes code a bit
nicer:

 Linker::tooltip( 'message' );
 
 Xml::expandAttributes( array(
	'title' => Linker::titleAttrib( 'message' )
 ) );

(the later would give you 'title=""' when 'tooltip-message' message does
not exist.
2011-12-13 09:52:39 +00:00
Jeroen De Dauw
cb1f9b80d0 since tag++ 2011-12-13 05:25:06 +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
Amir E. Aharoni
739d6c48fe Replaced the core message 'sectionlink' with getArrow, which is cleaner and does the right thing in mixed RTL/LTR environment. Removed the message from the messages files, because it doesn't seem to be used elsewhere. 2011-12-12 06:40:40 +00:00
Sam Reed
8e9b597894 * (bug 24765) User tool links edit hook
Original patch by "biolizard", updated to not use $this in static, and added relevant documentation
2011-11-20 15:16:54 +00:00
Antoine Musso
65c6f8c19a Bug 32238 - phaseout wgEnableTooltipsAndAccesskeys 2011-11-19 16:40:23 +00:00
John Du Hart
93e50f7eed Following r100264, update usages in core 2011-11-16 04:37:17 +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
Aaron Schulz
6c4360c951 Make use of Title::isSpecialPage() in various places 2011-11-02 20:55:08 +00:00
Sam Reed
9ceb44a598 Fixup some assignments in conditionals
Add/normalise some more return statements
2011-10-16 03:27:12 +00:00
Alexandre Emsenhuber
632bb29658 Fix usage example of Linker::specialLink() 2011-10-11 13:00:17 +00:00
Sam Reed
937fc3bcfd Back out r95396 and friends 2011-09-29 22:08:00 +00:00
Sam Reed
0afa5cd5a3 Guard against
PHP fatal error in /home/wikipedia/common/php-1.18/includes/Linker.php line 831: 
Argument 1 passed to Linker::makeMediaLinkObj() must be an instance of Title, null given, called in /home/wikipedia/common/php-1.18/includes/Linker.php on line 1221 and defined
2011-09-22 15:08:32 +00:00
Sam Reed
8b44f9032c Fix single character access 2011-09-22 14:57:08 +00:00
Alexandre Emsenhuber
35d5bbc9f7 * Removed useless isset() check
* Added two spaces
2011-09-19 18:38:38 +00:00
Niklas Laxström
c4bf5b40ed Chrome seems to already support dir=auto, and I see no downsides using it for user comments.
Amir said that it is good.
2011-09-14 08:32:52 +00:00
Alexandre Emsenhuber
623d78b1c5 Added visibility markers to some Linker methods 2011-09-12 09:25:00 +00:00
Alexandre Emsenhuber
e3e5f0771f * Follow-up r96420: don't show e-mail links to anon users
* Fix for r24612 (!) spotted while fixing the above: parenthesis arround the bitwise check are needed since ! operator has higher precedence than &
2011-09-11 08:14:46 +00:00
Siebrand Mazeland
8680d82503 Mark userLink, userTalkLink, blockLink() and emailLink() as public static per CR comment on r96420 by Nikerabbit.
He suggested protected, because of the @private comment, but as we have made  more methods public static in the Linker class recently, this seems appropriate.
2011-09-07 17:00:46 +00:00
Siebrand Mazeland
8a170cd8ae Follow-up r96420: correct casing for special page to prevent "PHP Notice: Found alias defined for Emailuser when searching for special page aliases for EmailUser. Case mismatch?". 2011-09-07 13:35:01 +00:00
Siebrand Mazeland
0c12790089 Add constant Linker::TOOL_LINKS_EMAIL to allow adding a "send e-mail" link from Linker::
Add "send e-mail" link in user tools for developer details (Special:Code/Project/author/authorname) in CodeReview.
2011-09-07 12:12:24 +00:00
Daniel Friesen
a36ac512e6 Crack down on arguments inside the Linker that call themselves $text but in reality are unescaped html. 2011-09-03 13:46:56 +00:00