Commit graph

17 commits

Author SHA1 Message Date
Alexandre Emsenhuber
c4ae62347d Use local context to get messages 2012-02-25 13:21:26 +00:00
Brion Vibber
7bab72edeb * (bug 30977) Remove directions cruft, undo random limitation of input format for Special:Filepath
Reverts r43471 which forced Special:FilePath's input to not accept titles with the File: or Image: namespace on them, or otherwise requiring any normalization beyond space/underscore.
Also removes the extra line saying 'input the name without the file: prefix' which used the native namespace name, which prompted a question about its formatting in mixed-directionality contexts.
2011-09-19 21:16:00 +00:00
Alexandre Emsenhuber
fde4d6ef8d Use local context instead of global variables 2011-08-23 19:48:18 +00:00
Sam Reed
50d5b074d0 And some more parameter documentation!! 2011-05-28 16:31:00 +00:00
Mark A. Hershberger
6826aed670 w/s diff. mostly eol w/s and using only tabs of width 4 to indent. 2011-03-18 20:37:11 +00:00
Krinkle
3cc14d4bf8 Bug 26870 - add width/height param to {{filepath:}}
* In addition to r80381
* Expanded comments in SpecialFilePath a little bit
2011-01-23 13:09:15 +00:00
Andrew Garrett
e0cfef93f3 Revert r80544 -- need to handle the case in which there is an error 2011-01-19 01:10:53 +00:00
Andrew Garrett
af5eed753f Quick adjustments to the if-block layout in r80381 to make the way the code works clearer 2011-01-19 01:03:39 +00:00
Roan Kattouw
771701eeef Add width parameter to Special:Filepath to allow getting the file path of a thumbnail. Requested by Krinkle for his Wordpress plugin (PhotoCommons) 2011-01-15 11:20:24 +00:00
Alexandre Emsenhuber
144c825809 Standardised file description headers; first path 2010-08-14 19:19:41 +00:00
Alexandre Emsenhuber
1ade5c518b Modified Special:Filepath to subclass SpecialPage; also changed some calls from Xml:: to Html:: 2010-07-03 18:39:20 +00:00
Derk-Jan Hartman
f68b7bddb4 Correct the address of the FSF in some of the GPL headers
59 Temple Place -> 51 Franklin Street
Follow up to r68351
2010-06-21 13:16:32 +00:00
Sam Reed
7b229a2047 GPL Headers for all! 2010-06-21 12:59:04 +00:00
Chad Horohoe
8b88d701b5 First round of war on $wgTitle. Don't use it in Special Pages. We've got SpecialPage::getTitleFor() which returns the localized title 100% of the time. Use that. 2009-04-07 16:33:12 +00:00
Ilmari Karonen
34fb6297cd Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
2008-12-01 17:14:30 +00:00
Tim Starling
19f1fa7576 Fix incorrect use of Title::newFromText(). That function lets the user choose the namespace using a title with colons, to force the namespace you must use Title::makeTitleSafe(). Images are always in the image namespace. 2008-11-14 00:44:08 +00:00
Brion Vibber
660a5eb7aa Rename all the special page class files back to their proper names.
1) This keeps the filename the same as the classname, which is always nice
2) This avoids duplicate filenames (such as includes/Export.php and includes/specials/Export.php)
So I've at least got a chance of figuring out what file is what still...
2008-06-19 21:12:45 +00:00
Renamed from includes/specials/Filepath.php (Browse further)