aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ImageGallery.php
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixup some more documentationSam Reed2010-11-131-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/76612
* * (bug 19944) Link on image thumbnails no longer link to "Media:" namespace ↵Alexandre Emsenhuber2010-11-101-2/+6
| | | | | | | | | | | | in some cases * (bug 25670) wfFindFile() now checks the namespace of the given title, only "File" and "Media" are allowed now The problem with bug 19944 was that the cache in RepoGroup was holding a file with a Title that has its namespace set to NS_MEDIA; the cache is now only used for title with namespace set to NS_FILE. Also modified ImageGallery to not call wfFindFile() on non-NS_FILE title; was obviously breaking the above fix. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/76437
* Followup r67707, cast these to boolean just to be paranoidChad Horohoe2010-06-091-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/67727
* Fixed a bunch of silly instances of [^!=]==\s*(true|false)Chad Horohoe2010-06-091-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/67707
* * (bug 12797) Add $wgGalleryOptions for adjusting of default gallery display ↵Raimond Spekking2010-03-131-5/+7
| | | | | | | | | options Reapply of r63197 (reverted with r63261). Per suggestion of demon now with 1 array with keys and w/o breaking parsertests Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63672
* Revert r63197 '(bug 12797) Allow adjusting of default gallery display ↵Chad Horohoe2010-03-051-7/+5
| | | | | | | options' Breaks gallery parser test, also I don't really like introducing 5 new globals for this...maybe 1 array with keys? Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63261
* (bug 12797) Allow adjusting of default gallery display optionsRaimond Spekking2010-03-031-5/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63197
* Fixed some doxygen warningsAlexandre Emsenhuber2010-03-011-6/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63138
* * Per my CR comments on r44560: merged FileCache into RepoGroup and fixed ↵Tim Starling2009-08-151-1/+1
| | | | | | | | | | | | wfFindFile() global function bloat. Did not port unused functions such as the batch loading functions. * Fixed the formal parameter bloat in the file finding functions by making wfFindFile(), RepoGroup::findFile() and FileRepo::findFile() take an associative array of options instead of a rapidly growing collection of formal parameters. Maintained backwards compatibility for the $time parameter, which was the only one used in an extension. * Took the advice of the todo comment on FileRepo::findFiles() and implemented a calling convention for specifying times (and other options) * Removed the file object cache from Parser, redundant with the RepoGroup file cache * Deleted clueless and non-functional LocalRepo::findFiles(). Does not respect redirects, deletion bitfields, or anything else nuanced about FileRepo::findFile(). Does not have the same calling convention as FileRepo::findFiles(). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/55082
* Applied image attribute improvements from r52726 to galleries as wellRemember the dot2009-07-151-2/+11
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/53287
* Follow-up to r51543: Fix another syntax error in ImageGallery.php. Sorry.Siebrand Mazeland2009-06-061-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/51547
* Follow-up to r51543: Fix syntax error in ImageGallery.phpSiebrand Mazeland2009-06-061-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/51546
* * replace use of deprecated makeLink() by link() in coreSiebrand Mazeland2009-06-061-4/+18
| | | | | | | * replace other deprecated Linker::*link*() methods in special pages Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/51543
* * Replace hardcoded '...' as indication of a truncation with the 'ellipsis' ↵Raimond Spekking2009-02-131-1/+1
| | | | | | | | | message Per Brion's suggestion in http://lists.wikimedia.org/pipermail/wikitech-l/2008-December/040796.html Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/47224
* Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).Ilmari Karonen2008-12-011-1/+1
| | | | | | | 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). Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/44121
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-4/+1
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* Stabilize image description linksAaron Schulz2008-05-191-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35052
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-9/+7
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* Some tweaks:Alexandre Emsenhuber2008-03-221-1/+1
| | | | | | | | * Remove ending ?> tag in NamespaceCompat.php * Fix hook name in docs/hooks.txt Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32330
* Revert r31473 -- causes fatal errors.Brion Vibber2008-03-031-6/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31477
* * (bug 13214) <gallery> doesn't resize images which are smaller than 120*120Huji2008-03-021-1/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/31473
* * (bug 11321) Fix width of gallerybox when option "width=xxx" is usedRaimond Spekking2007-09-131-1/+1
| | | | | | | See the screenshots before/after attached to the bug. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25822
* In OggHandler:Tim Starling2007-08-311-6/+8
| | | | | | | | | | | | | | | | | | * Changed display style: added a "more" link which expands a box for player selection. * Allow return to the still image only display. * Fixed Java detection in IE (I hope) Elsewhere: * Changed MediaTransformOutput::toHtml() parameters, now accepts a single associative array with well-defined elements. Allows OggHandler to distinguish between file download links and image description links. * Made image links consistently have an anchor tag with class=image, instead of a mixture of image and internalParse. * Made most images have a border=0 attribute, instead of just images on the image description page. Does not appear to adversely affect display at all, it was just convenient. * Use the image name as the title attribute for the <a> tag, when an a caption was not given by the user * Block centering by the auto margins method in ImageGallery * Fixed complete breakage of the thumbnail on upload conflict feature * TODO: test DjVu Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25335
* Order of link parameters changed in r25049; putting them back so the parser ↵Brion Vibber2007-08-221-1/+1
| | | | | | | test stops whining. :) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25068
* In ImageGallery: Tim Starling2007-08-221-8/+31
| | | | | | | | | * Split "is parsing" and "respect bad images" concepts. * Call media handler parser hook * Use the $linkAttribs parameter instead of putting an <a> tag around the whole media output. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25049
* * (bug 10508) Allow HTML attributes on <gallery>Brion Vibber2007-07-131-1/+22
| | | | | | | | * (bug 1962) Allow HTML attributes on <math> Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24065
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* * (bug 10265) Fix regression in category image gallery pagingBrion Vibber2007-06-151-0/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23012
* *Add BeforeGalleryFindFile, TitleLinkUpdatesAfterCompletion, ↵Aaron Schulz2007-05-311-1/+6
| | | | | | | BeforeParserFetchTemplateAndtitle, BeforeParserMakeImageLinkObj, BeforeParserrenderImageGallery; make parser outputs and output page record images -> timestamps used and templates -> revision ids Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22600
* Merged filerepo-work branch:Tim Starling2007-05-301-11/+15
| | | | | | | | | | | | | | | | | * Added support for configuration of an arbitrary number of commons-style file repositories. * Split Image.php into filerepo/File.php and filerepo/LocalFile.php * Renamed Image::getImagePath() to File::getPath() * Added initial support for timestamp-based file fetching (OldLocalFile), to be expanded upon by aaron. * Changed the interface for Image/File object creation: use wfFindFile() or wfLocalFile() depending on semantics * ImageGallery::add() now accepts a title object as the first parameter * Moved file handling operations on upload from SpecialUpload to File * Removed path-related functions from ImageFunctions.php. Removed static path accessors from File. * Added a Content-Disposition header to thumb.php output * Improved thumb.php error handling * Updated the unit test suite to kind of partially work with modern computers. RunTests.php doesn't work just yet. Fixed an actual regression that the test suite detected -- moved some defines to Defines.php where they will be loaded consistently. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22580
* Doc tweaks:Nick Jenkins2007-04-241-0/+1
| | | | | | | | | * Seems like an opportune time to introduce "@addtogroup Media" documentation tags. * Merge "@addtogroup Metadata" (used by Exif.php) into "@addtogroup Media". * Few more moving comment blocks to above classes. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21515
* * Introduced media handler modules for file-type specific operations: ↵Tim Starling2007-04-201-2/+3
| | | | | | | | | | | | | | | | | | | thumbnailing, img_metadata, capabilities, etc. * Deprecated $wgUseImageResize, thumbnailing will be enabled unconditionally. * Fixed interaction of page parameter to ImagePage with the HTML file cache * Improved error reporting for image thumbnailing * Fixed MIME type for SVG files, will be silently changed from image/svg to image/svg+xml after loading from the database. * Workaround for djvutoxml bug #1704049 (poor performance). Use djvudump instead. * Fixed odd behaviour in ImagePage on DjVu thumbnailing errors * Improved error reporting for image thumbnailing * Added sharpening option for ImageMagick thumbnailing * Removed Image::selectPage(), added page parameters to getWidth() and getHeight(), deprecated Image::renderThumb() and Image::getThumbnail() * Changed default contents of img_metadata to empty string instead of a:0:{} * Moved responsibility for respecting $wgGenerateThumbnailOnParse from the UI to Image.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21411
* Missing unit 'px' added. W3C CSS validator Raimond Spekking2007-02-091-1/+1
| | | | | | | | | whines about it: "Invalid number : width only 0 can be a length. You must put an unit after your number : 150" Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19845
* * (bug 6987) Allow perrow, widths, and heights attributes for <gallery> (I ↵Aryeh Gregor2007-02-021-24/+69
| | | | | | | | | deliberately called them "widths"/"heights" and not "width"/"height" because the latter two would most obviously mean width and height of the gallery itself) * Convert <gallery> caption to, well, a <caption> Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19721
* The war on redundant ampersand usage!Nick Jenkins2007-01-221-3/+3
| | | | | | | | | | | | * Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );" * convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();" For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too. Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19598
* (bug 8403) Respect bad image list exceptions in galleries on wiki pagesRob Church2007-01-201-4/+28
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19536
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-2/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* Rename constructors to __constructorAntoine Musso2007-01-201-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19492
* Rename ImageGallery::setCaptionSafe() to ImageGallery::setCaptionHtml(), ↵Rob Church2007-01-051-1/+1
| | | | | | | since as Simetrical points out...it's not actually safe :D Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/18824
* * Move escaping of image gallery captions to ImageGallery::setCaption()Rob Church2007-01-041-2/+11
| | | | | | | | * Allow developers to set HTML gallery captions with ImageGallery::setCaptionSafe() * (bug 8489) Support basic links in <gallery> caption attribute Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/18813
* Completing code housekeeping stuff for rest of includes/ directory: removing ↵Nick Jenkins2006-11-291-2/+1
| | | | | | | unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17991
* (bug 7892) Add media count to category page, à la subcats/pages. Used a ↵Aryeh Gregor2006-11-241-0/+7
| | | | | | | new count() method I added to ImageGallery class. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17902
* Reverting 17479/17480, breaks subclassing of Linker methods by skins. See my ↵Tim Starling2006-11-081-4/+31
| | | | | | | comment on bug 7405. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17484
* * (bug 7405) Make Linker methods static. Patch by Dan Li.Nick Jenkins2006-11-081-31/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17479
* (bug 6420) Render thumbnails for djvu images, show multipage preview on ↵Jens Frank2006-08-131-2/+2
| | | | | | | image page Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/16036
* Strict Standards with PHP5Antoine Musso2006-07-121-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15573
* suppressing thumbnail generation in more placesTim Starling2006-07-051-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15344
* Gallery code cleanup patch by Ilmari KaronenBrion Vibber2006-06-291-33/+25
| | | | | | | http://bugzilla.wikimedia.org/attachment.cgi?id=2028&action=view Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15164
* * Fix display of file-type icons in galleries when $wgIgnoreImageErrors is offBrion Vibber2006-06-251-3/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/15029
* Cripple the wiki text stuff for now. It doesn't SEEM dangerous but I haven't ↵Rob Church2006-06-241-2/+1
| | | | | | | tested the lot. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14989