Commit graph

16 commits

Author SHA1 Message Date
Brion Vibber
41c8b7bf72 Antiglobalization!
* Remove some unused and some useless functions from GlobalSettings.php
* wfEscapeHTML() replaced with PHP built-in htmlspecialchars().
* Moved some functions into Parser.php and Image.php
2004-08-13 15:55:59 +00:00
Brion Vibber
6a6411759e Use ImageMagick's -background parameter to set the background color of
transparent PNG thumbnails to white instead of default black. This will
be shown in Internet Explorer 6 and will generally be less invasive
(particularly for black-on-transparent line art!)

Fix for [ 978664 ] Thumbnails of transparent PNGs bad in IE6
2004-08-09 01:59:40 +00:00
Tim Starling
a89e4ec114 moved squid purge down, untested 2004-08-07 05:42:37 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Brion Vibber
00f77472b4 If image is missing (or not an image file), move on silently 2004-05-31 23:50:30 +00:00
Jens Frank
7478555734 Only generate truecolor PNGs if original image is already truecolor.
Will still generate truecolor for PHP 4.2 or earlier.

Fix for bug #918857
2004-05-20 12:08:42 +00:00
Jens Frank
069d863341 Only generate truecolor PNGs if original image is already truecolor.
Will still generate truecolor for PHP 4.2 or earlier.

Fix for bug #918857
2004-05-20 12:03:22 +00:00
Jens Frank
a1509c0fd3 make image width an integer, not a real number 2004-05-09 10:55:47 +00:00
Jens Frank
6606ab513e Image bounding box can be specified instead of width, e.g. as
100x100px, making the image not wider than 100px and not higher
than 100px, keeping aspect ratio.
2004-05-09 10:52:50 +00:00
Jens Frank
e434f7b9cd Moved image history retrieval function to Image.php.
Variable names in Skin::imageHistoryLine() changed.
2004-05-08 18:55:22 +00:00
Jens Frank
96f47a6c5b Merged wfImagePath into Image class 2004-05-06 06:31:35 +00:00
Jens Frank
144e0c2ed1 moved some more functions from GlobalFunctions to Image 2004-05-04 20:35:37 +00:00
Brion Vibber
00e5822e17 Don't create thumbnail images larger than the image; use the source image
itself if asked. Reject attempts at zero or negative-width thumbs.
2004-04-29 04:42:52 +00:00
Jens Frank
42f39da880 wfImageUrl moved from Globalfunctions to Image
Preferred access via $image->getUrl(), but for compatibility
Image::wfImageUrl() still works
2004-04-24 23:45:11 +00:00
Jens Frank
bbe9f6a37b Move image-specific methods to Image-class
Step 1: createThumb and related functions
2004-04-24 22:33:06 +00:00