Commit graph

21 commits

Author SHA1 Message Date
Victor Vasiliev
05211a190b * (bug 15008) Redirect images are now subject to Bad image list rules 2009-05-01 21:22:25 +00:00
Aaron Schulz
9714e87bfd Typo 2008-12-16 06:26:14 +00:00
Brion Vibber
c40f091272 Follow-up to r44651 -- stay in floats until we finish the SVG size, so aspect ratios in silly tiny units are preserved better. 2008-12-16 05:45:28 +00:00
Brion Vibber
562fef4f58 * (bug 3691) Aspect ratio from viewBox attribute is now preserved for SVG
images which do not specify width and height attributes.

Examples from bugs:
http://commons.wikimedia.org/wiki/Image:Gcj.svg
http://commons.wikimedia.org/wiki/File:Providence_Metro_Area.svg
2008-12-16 05:39:11 +00:00
Brion Vibber
611b224f31 * (bug 14268) SVG image sizes now extracted with proper XML parser
Uses a filter with XmlTypeCheck. Yay!
Now works with UTF-16 sample file uploaded on the bug. Should work with large comments etc as well.
2008-12-09 00:26:09 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
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.
2008-05-20 17:13:28 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Brion Vibber
0310f289f7 * Fix for size checks on SVG images with global 'stroke-width' attribute 2008-03-24 18:17:47 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to 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.) 2007-06-29 01:19:14 +00:00
Tim Starling
ed4303922f Merged filerepo-work branch:
* 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.
2007-05-30 21:02:32 +00:00
Rotem Liss
147c8d77da Typo in comment. 2007-01-14 17:33:28 +00:00
Brion Vibber
8d4c6af284 revert r18517; should have been on branch 2006-12-23 09:03:36 +00:00
Paa Kwesi Imbeah
9574ae460f Minimal version of IC functionality. 2006-12-23 05:30:40 +00:00
Nick Jenkins
ae8554c45b Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. 2006-11-29 11:43:58 +00:00
Brion Vibber
45432053e8 * (bug 6164) Avoid smashing Cite state if message transformation triggers
during bad image list check, by skipping message transformation.
  This isn't a good permanent fix.
2006-10-12 01:07:01 +00:00
Tim Starling
240a6cb24d Added exception list feature to the bad image list 2006-09-25 01:35:41 +00:00
Rotem Liss
679f587f24 EOL fixes. 2006-08-31 11:20:43 +00:00
Tim Starling
9165ef2c4b Changed the image directory global functions, they no longer create the directory before they return it. This was inefficient, especially due to the need for multiple NFS stat calls for every image shown on a page during parse. The caller is now required to create the directory if necessary, and it can do so with the recently souped-up wfMkdirParents(). 2006-07-04 14:20:52 +00:00
Rob Church
6cf69d85f5 narf 2006-07-02 21:55:17 +00:00
Rob Church
eda6563be1 * Introduce 'BadImage' hook; see docs/hooks.txt for more information 2006-07-02 21:54:34 +00:00
Tim Starling
2ff288720c Various performance and initialisation issues:
* Made autoloader work for unserialize()
* Made XmlFunctions.php and HttpFunctions.php autoloadable modules, via Http:: and Xml::
* Made Image class autoloadable, global functions moved to ImageFunctions.php where they can be loaded on every invocation.
* Removed some unnecessary require_once() calls
* Deferred $wgValidSkinNames initialisation
* Fixed a couple of silly construct/initialise splits. My idea from C++ experience, bad practice in PHP.
* Deferred skin initialisation in ParserOptions
* Removed $wgMwRedir during an attempt to make MagicWord autoloadable. Didn't complete that, but removing the global is still the right direction.
2006-07-02 15:57:59 +00:00