Commit graph

97 commits

Author SHA1 Message Date
Brion Vibber
2c115d9c6a * (bug 2488) Format 'deletedtext' message as wikitext 2005-06-22 21:38:15 +00:00
Jens Frank
04f3b6154a BUG#2292 - catch 'null' return values for getThumbnail() 2005-06-13 06:38:02 +00:00
Ævar Arnfjörð Bjarmason
27105c2129 * (bug 898) Mime type autodetection. 2005-05-21 07:46:17 +00:00
Jens Frank
9398de0199 (bug 2110) "noarticletext" should not display on Image page for "sharedupload" media 2005-05-20 22:41:17 +00:00
Ævar Arnfjörð Bjarmason
c411e2048c * Added CSS styles to each Exif tag to make them styleable. 2005-05-09 12:50:40 +00:00
Ævar Arnfjörð Bjarmason
7df42e1009 * Moved the Metadata link next to the image link in the TOC 2005-05-09 09:50:45 +00:00
Ævar Arnfjörð Bjarmason
d7c5996274 * Moving the metadata table back into a vertical table, I'm working on making
collapsable sections within it so it won't be so big.
2005-05-08 16:19:12 +00:00
Ævar Arnfjörð Bjarmason
8f96eb5e2a * Don't display the metadata TOC link for pages where it's not applicable 2005-05-05 02:39:21 +00:00
Ævar Arnfjörð Bjarmason
171edcdffc * msg:exiftags => msg:metadata (exiftags no longer exists)
* The TOC rewritten as a proper <ul> to make it easier to skin it
* id="file" added to the actual file to make it linkable
2005-05-05 01:44:17 +00:00
Ævar Arnfjörð Bjarmason
3d5da489c9 * (bug 2056) Since we added img_type to the schema we return 0 if the image
type is unrecognized, not '', whoever changed that forgot to update this if
  statement.
2005-05-03 09:02:31 +00:00
Brion Vibber
28c9a74779 * Fix up the TOC markup a bit.
Moved the outer box back from <div> to <table>, as the inline-size
workarounds would break a lot of pages which use floated-right
sidebars.

Make TOC styles available as a class .toc, so the #toc doesn't need
to be (ab)used to create alternates with the same style.
2005-04-30 06:41:09 +00:00
Brion Vibber
566d70d81a Move image TOC into content area; a float tends to overlap and crunch in
ugly ways when the title is long or the window is small.
The markup of the toc itself is still a bit odd (table, may conflict with
wiki toc if the description includes one).
2005-04-30 02:52:52 +00:00
Brion Vibber
e4b96bc7ec Mix back some of the changes from previous check-in with additional fixes
and a cleaner version of the table.
* Clean up EXIF display table:
- use localized description of items
- don't forget to HTML-encode the localized messages!
- clean up the style a bit on the middle spacer
- distinguish the header and data columns a little better
* Don't show 'edit this image' link if no file exists
2005-04-30 02:37:16 +00:00
Brion Vibber
3073714101 Undo severe uglification and cluttering of exif table 2005-04-30 01:59:51 +00:00
Ævar Arnfjörð Bjarmason
9ad30a36b9 * Only display the uploadLinksBox() if the subject is a valid image
* Converted showTOC to an unordered list (it's not tabular data)
* Displaying the exifdata as a sidebar again (made some css tweaks to limit
  the width)
2005-04-30 01:41:52 +00:00
Jens Frank
c5a70bead7 Remove hardcoded CSS ... 2005-04-29 20:56:39 +00:00
Jens Frank
92c6bdbbe3 Remove debug code ... 2005-04-29 20:52:23 +00:00
Jens Frank
ffbd771fdf Unclutter ImagePage. Move EXIF data to the end of the page. Move image upload links to image revision section 2005-04-29 19:45:49 +00:00
Ævar Arnfjörð Bjarmason
bdc10a03f3 * Rewrote showEXIFdata() to use addWikiText() instead of addHTML() 2005-04-25 23:44:16 +00:00
Ævar Arnfjörð Bjarmason
cab1599a4c * Fixed two fatal XML errors 2005-04-25 22:56:31 +00:00
Ævar Arnfjörð Bjarmason
f8923e57db * Moving hardcoded styles into CSS. 2005-04-21 20:56:55 +00:00
Ævar Arnfjörð Bjarmason
b9828d25ff * Show exif data after the image not before it. 2005-04-21 18:28:25 +00:00
Magnus Manske
fb7ab9aa6f Automatic EXIF update upon viewing 2005-04-21 12:59:32 +00:00
Magnus Manske
c6740488f6 Moving EXIF data retrieval to Image class 2005-04-21 11:28:56 +00:00
Magnus Manske
6fd215ec51 Adding patched EXIF data display on image page, based on include file by Vinay Yadav 2005-04-21 09:23:34 +00:00
Tim Starling
8c8ef55be5 * When an image is changed, invalidate pages that use it.
* Introduced image "broken links" allowing the user to quickly upload an image with that name
* "Upload a new version of this image" link from the image description page
2005-04-17 08:30:15 +00:00
Tim Starling
8395a4e8e7 Fixed various bugs with new image code, changed thumbnail paths as per JeLuF's suggestion 2005-04-16 11:05:41 +00:00
Tim Starling
f90c740f91 Fixed some obvious bugs with the new code and implemented If-Modified-Since handling 2005-04-16 05:48:21 +00:00
Tim Starling
efba9e3476 Moved image metadata to the database. Changed Image object to have lightweight constructors, similar to the User object. 2005-04-10 18:29:30 +00:00
Brion Vibber
f943ce06fd Avoid some redundant title-munging by using makeKnownLinkObj
Clean up a missing </div> in external edit thingy
2005-04-02 20:55:19 +00:00
Ævar Arnfjörð Bjarmason
e48e5e3428 * Minor syntax cleanup of editExternally related things. 2005-04-01 16:40:20 +00:00
Brion Vibber
1b43d4ee09 Fix query syntax which broke a couple functions' debug info (foreport from 1.4) 2005-03-27 22:29:37 +00:00
Ævar Arnfjörð Bjarmason
1915eed782 Fixing a fatal XML error that broke XHTML compliance. 2005-03-26 16:51:42 +00:00
Erik Moeller
1b562068b6 Preliminary support for application/external-editor
allows editing wiki pages or files with an external application, by using
an intermediate helper application (such as the reference one in
extensions/ee) which fetches the data and transmits the changes back to the
server.

This version adds external editor support for uploaded files, as well as for
pages. More operations, such as diffs and merges, should support
application/external-editor in the future.

See extensions/ee/README for some more info on the concept. Documentation
will also be placed on http://meta.wikimedia.org/wiki/Help:External_editors
2005-03-24 13:30:09 +00:00
Tim Starling
06e6cd5d99 * Appllied patch for bug 1686, image metadata cache by Andrius Ramanauskas.
* Changed memcached invalidation style in this patch to recache instead of deleting, which is better for concurrency
* Added a fix for the media link problem, differnet to my fix for the same problem in REL1_4 but either should work.
* Fixed image deletion, it didn't work at all. Not sure when it was broken or if it's been reported. It was working in REL1_4. It was a trivial error.
2005-03-13 15:00:59 +00:00
Brion Vibber
014a1d1bab Cruft war continues: more uses of isAnon() and isLoggedIn() 2005-02-21 12:46:37 +00:00
Brion Vibber
388d95d7b8 De-cruftification continues.
* Replacing Namespace:: functions with NS_ constants
* Replacing make*Link() on strings with make*LinkObj() on Title objects
* Using more legible convenience methods on User and Title
* Start using a common Linker::commentBlock() to wrap the formatComment() bits in the surrounding formatting
2005-02-21 12:23:52 +00:00
Brion Vibber
5a9e8c8c62 Audit tweaks: extra post checks, markup fixes. 2005-02-21 01:56:50 +00:00
Brion Vibber
761d37d7cc * Fix annoying blue line in Safari on scaled-down images on description page 2005-02-19 23:52:28 +00:00
Brion Vibber
180876cc83 * Block image revert without valid login 2005-02-08 13:55:13 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Jens Frank
1ef6cb2f89 Remove debugging code 2004-12-28 22:35:12 +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
abb2fe3809 * Fix image page scaling when thumbnail generation is disabled 2004-12-21 03:21:41 +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
Jens Frank
d74a8995d9 (bug 1024) Fix link to high-res image version on Image: pages 2004-12-07 21:19:02 +00:00
Brion Vibber
b525086012 1014 fix from REL1_4 2004-12-06 14:51:18 +00:00
Brion Vibber
0ec30e2f98 Add some conditional die()s to suppress fatal error messages if certain files are run directly from the web. On a server concerned about path disclosure, display_errors should be off, but we can play nice anyway. 2004-12-03 10:57:19 +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
Brion Vibber
58f5926146 (bug 973) quickie brake for images with many many uses 2004-12-02 03:04:56 +00:00