Commit graph

29 commits

Author SHA1 Message Date
Jens Frank
5f4b3ec064 On image pages, limit image width to $wgMaxImageWidth.
If $wgUseImageResize is set, the image will be resized to fit this limit.
The resized image links to the big image.
Default for $wgMaxImageWidth is 800 pixels. Set to really big values (like 9999999) to disable.
2004-08-17 21:07:14 +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
Jens Frank
2892f41068 Don't allow reverting of images if the image page is protected. Fixes BUG 996920. 2004-08-05 04:30:29 +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
ae2557057f Un-break image page links w/ underscore in filename 2004-05-31 23:46:04 +00:00
Brion Vibber
170d0361dd Fix image deletion for file with ampsersand in name (bug 952546) 2004-05-28 07:45:38 +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
144e0c2ed1 moved some more functions from GlobalFunctions to Image 2004-05-04 20:35:37 +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
Gabriel Wicke
29f434be78 div instead of span 2004-04-16 10:53:55 +00:00
Gabriel Wicke
abc0789154 forgot the media class... 2004-04-12 22:31:43 +00:00
Gabriel Wicke
c5496afdf4 class for image 2004-04-12 22:30:44 +00:00
Gabriel Wicke
fdaad9ec00 center -\> span, empty alt tag added (todo: span with class, fill alt tag) 2004-04-09 14:57:05 +00:00
Brion Vibber
fe5ff59ad6 XHTML fixes. 2004-04-09 01:37:41 +00:00
Brion Vibber
3d2a067e8c HTML tweaks inching towards XHTML-friendly output. To test:
$wgMimeType = "text/xml";
	$wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
	$wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";

Mozilla will spit out angry erorrs at all the well-formedness errors.
2004-04-03 10:01:08 +00:00
Tim Starling
eba44727d5 fixing notices and syncing with refactoring in Article.php 2004-04-01 12:43:40 +00:00
Tim Starling
e9aa758d7a Removed dependence on register_globals from everything except the special pages. Fixed miscellaneous bugs. 2004-03-29 14:48:07 +00:00
Tim Starling
2ca258fd03 * Changed inclusion syntax to allow e.g. {{stub}}
* Split MediaWiki namespace into MediaWiki and Template (requires changes to all language files)
* Purge links to on edit of Template namespace
* General refactoring of purging and cache invalidation code
2004-03-20 15:03:26 +00:00
Brion Vibber
59c6e92429 Some changes to the link tables. They now all use a key on cur_id for the *_from column instead of strings, and have a unique index to force prevent any duplicate entries. There's not yet a clean step in the update script, so just clear out your links tables (patch-linktables.sql) and rebuild them with refreshLinks.php.
This saves trouble in a number of places where we can now do joins with the link tables to get other info (such as cur_is_redirect!) as well as the name, and fewer bits need to be juggled on page renaming, as outgoing links no longer have to be changed (cur_id remains the same when a page is renamed).

rebuildLinks.inc and some of the tools in the 'maintenance page' still need to be updated to work with the new setup. (Special:Maintenance needs a *lot* of cleanup in general. It's kind of a catch-all of vaguely defined features which suck performance like a hydroelectric dam.)

Also I've slipped in some extra debug code. And, I think 'indexes.sql' is a big waste of time and should all be moved into tables.sql. Building indexes separately doesn't help on InnoDB and won't do anything on MyISAM either if you're just going to replace the table after it's built with an imported one from a dump which creates it with indexes.
2004-03-11 09:06:13 +00:00
Gabriel Wicke
7a704aa287 Image purging. Are scaled versions of images deleted at all? 2004-02-20 12:10:00 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Jens Frank
b1de8112a8 cosmetic changes, for styleguide compliance 2004-01-29 23:06:01 +00:00
Jens Frank
43c5dfe980 Fixed problem with image pages of non existing images 2004-01-16 18:11:47 +00:00
Erik Moeller
99f6383f37 JeLuF's image resizing code 2004-01-12 00:55:01 +00:00
Brion Vibber
1eea2cd0d5 Image deletion for yssops only 2003-11-24 10:48:39 +00:00
Brion Vibber
def0193f31 Use wfMsg()'s parameters 2003-11-15 14:11:30 +00:00
Tim Starling
7057b4e609 wfQuery now takes three parameters -- one extra for DB replication purposes 2003-09-20 01:34:06 +00:00
Brion Vibber
19682710ba Split image description page handling into ImagePage child class of Article.
Fold together some set/unset pairs in Article (watch, protect).
2003-09-01 09:59:53 +00:00