Commit graph

51 commits

Author SHA1 Message Date
Jens Frank
81226a41cf Reduce number of places in the code where articles are saved.
Use Article::insertNewArticle instead of own code
2005-01-30 19:30:42 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Antoine Musso
e98c549e28 * Code presentation foobar() {
* a few double to single qutoes
2005-01-20 10:14:45 +00:00
Jens Frank
039650c456 BUG#1218 - Show the original image on image pages if the thumbnail would be bigger than the original image 2004-12-28 12:31:33 +00:00
Brion Vibber
45be19b526 * Avoid PHP warning messages when thumbnail not generated 2004-12-23 04:54:48 +00:00
Brion Vibber
64ac6b8e77 Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00
Brion Vibber
fada5faa4b * (bug 1074) Add stock icons for non-image files in gallery/Newimages
* Add width and height attributes on thumbs in gallery/Newimages
2004-12-12 09:56:02 +00:00
Brion Vibber
b525086012 1014 fix from REL1_4 2004-12-06 14:51:18 +00:00
Erik Moeller
f696971eba - Refactor Image class for better maintainability
- Add $wgRepositoryBaseUrl for backlinks to repository wiki from local
image pages
2004-12-02 19:56:00 +00:00
Evan Prodromou
4b42f18b66 Removed CVS keywords from files, to make merging between branches
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00
Erik Moeller
ca8ef41fbb bugfix 2004-10-30 12:20:34 +00:00
Erik Moeller
e3881e5f74 -double encoding 2004-10-30 09:34:39 +00:00
Erik Moeller
89857080c7 use $wgLang->ucfirst, fix captallinks behavior 2004-10-30 09:12:15 +00:00
Erik Moeller
1e4ad78a72 if the shared repository is utf-8, and the local wiki is latin1, encode
filenames
2004-10-30 08:40:08 +00:00
Erik Moeller
37b73a8882 capitalize filename so that wikis with $wgCapitalLinks=false can access
shared repositories in a case insensitive way
2004-10-30 07:29:33 +00:00
Erik Moeller
dcb181d10a taking out $wgSharedUploadBaseUrl , which is not needed 2004-10-27 10:51:57 +00:00
Tim Starling
412eda0517 Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php 2004-10-24 07:10:33 +00:00
Erik Moeller
0d02b52702 Preliminary support for shared upload directory. This is primarily intended
for the Wikimedia Commons. If $wgUseSharedUploads is set, MediaWiki will try
to locate an image file in the shared upload directory if it is not found
locally. Thumbnails for shared images will also be generated in the
shared directory.

Note: I changed
                $text = $this->replaceInternalLinks ( $text );
                $text = $this->replaceExternalLinks( $text );
to
                $text = $this->replaceExternalLinks( $text );
                $text = $this->replaceInternalLinks ( $text );

in Parser.php. Otherwise [[Media:Bla.jpg]] to an absolute URL would be
incorrectly parsed as external links. The header of
replaceExternalLinks says:

        Note: we have to do external links before the internal ones

So the old order was not consistent with the documentation. I did some
tests and nothing seems to be broken, but I have some problems executing
parserTests.php so I couldn't test it systematically.
2004-10-21 05:04:14 +00:00
Wil Mahan
63408b4a43 Add "longdesc" attribute to all (non-external) images, containing
the URL of the image page.
2004-10-12 00:12:06 +00:00
Erik Moeller
e946bf9641 bugfix: check for existence of PRIMARY key in addition to UNIQUE key, as
MySQL returns "PRIMARY" as key_name. This caused uploads to fail with a
"patch required" message in HEAD even if the schema was up to date.
2004-10-11 04:10:41 +00:00
Brion Vibber
061ab79546 Add support for some alternate SVG rasterizers:
* ImageMagick - scaling is done after rasterization, and curves don't look good
* Batik - looks good; requires Java
* Sodipodi & Inkscape - haven't got them actually working yet; they crash on my mac when called from the web server though they work on the command line
2004-10-06 10:33:22 +00:00
Brion Vibber
0db266af1d Get native size from SVG files 2004-10-06 09:43:00 +00:00
Brion Vibber
1111b47477 Rasterize plain image views of SVG files at default size (currently 512px wide, maybe not the best).
Prefer ImageMagick over GD when setting up LocalSettings.php
2004-10-05 07:35:19 +00:00
Brion Vibber
b887b260a6 Quickie experimental SVG rasterization hack: if using $wgImageMagick, will attempt to create thumbnails of SVG images as PNG.
Incomplete so far:
* If you just ask for the image (or eg look at the image page) without a size, it tries a straight <img> with no rasterization still
* ImageMagick may not be the best renderer.
* It doesn't know the 'real' size of aspect ratio of the image.
2004-10-04 10:55:43 +00:00
Jens Frank
bbc1ac7f04 Documentation 2004-10-02 00:02:49 +00:00
Domas Mituzas
255fd3d629 allow turning off image path hashing. there was a feature request for that somewhere. 2004-09-28 19:54:51 +00:00
Domas Mituzas
6dd05bcd14 allow specifying alternative image upload base url (like external servers) 2004-09-23 12:15:42 +00:00
Jens Frank
3d946b5c22 New Special page: Visual list of newly uploaded images Special:Newimages 2004-09-14 20:57:54 +00:00
Jens Frank
7be4991983 New user option. Provides a setting to limit the image size on image description pages. 2004-09-10 00:53:31 +00:00
Domas Mituzas
11dbee2124 tsfixen 2004-09-09 07:13:06 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Brion Vibber
41e752879c Special:Log and the logging table -- unified logging scariness!
Replaces the ugly, often breaking, manually archived log pages with
a nice clean table which can be sorted, trimmed, viewed in pieces, etc.
You can see all logged actions by some user, or affecting some page,
and can combine the views of all all logs in one.

There are probably still some broken things in here, but I want this
committed before the patch gets any bigger.

recentchanges table is altered to make rc_namespace signed so Special:
links can be listed in it.
2004-08-24 08:11:46 +00:00
Brion Vibber
82571fa72d Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
and use it in a few places where user names, images, or messages are being
used to create titles.
2004-08-22 23:55:36 +00:00
Antoine Musso
3d60242fb5 massive double to single quotes conversion. I have not noticed any bug after a lot of testing 2004-08-22 17:24:50 +00:00
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