Tim Starling
02547dac72
Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date.
2006-06-07 06:40:24 +00:00
Domas Mituzas
93623ad2d7
AutoLoad RawPage, EditPage, ExternalEdit, PageHistory, move DIR_NEXT and DIR_PREV constants into PageHistory::
2006-06-06 12:28:44 +00:00
Brion Vibber
0a26267688
Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :)
2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104
Use AutoLoader to load classes:
...
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Brion Vibber
aa905f9ab2
* Replace fatally changed 'uploadnewversion' with 'uploadnewversion-linktext'
...
Fixes '$1' in the reupload message on existing wikis
2006-05-27 19:11:29 +00:00
Brion Vibber
95e391545a
* (bug 6074) Correct squid purging of offsite upload URLs
...
You can now feed both local relative URLs and fully-qualified URLs to the
squid purge functions; local URLs will have $wgInternalServer prepended
if needed. This avoids the broken URLs produced by other functions prepending
it when it wasn't always needed.
2006-05-24 21:57:25 +00:00
Rob Church
a27f1f84fc
Use appropriate HTML functions to create the tool links on image pages, so they don't look garbled when tidy isn't on
2006-05-22 09:28:03 +00:00
Niklas Laxström
8b403ede36
* (bug 5805) message nbytes can now use {{plural:}}
...
* Cleaned up Special:Imagelist a bit
2006-05-05 12:21:12 +00:00
Tim Starling
98af136ad5
Added ss_images to site_stats, to replace the slow count(*) query in Parser.php.
2006-03-28 05:09:33 +00:00
Lupin
11337038b3
removing unused globals and some whitespace cleaning
2006-03-07 01:10:39 +00:00
Brion Vibber
327f9654d0
* Purge thumbnails and metadata cache for action=purge on an image page
2006-03-01 01:27:36 +00:00
Rob Church
b506512bda
(bug 4875) Define a div containing the shared image description
2006-02-05 18:32:55 +00:00
Domas Mituzas
2d23e2a977
Tidy up only article views, previews, image pages and diffs.
2006-01-23 18:37:46 +00:00
Brion Vibber
266d41f165
* Added wfDie() wrapper, and some manual die(-1), to force the return code
...
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
04a7e6291e
* (bug 1103) Fix up redirect handling for images, categories
...
Redirects are now followed from the top-level, outside of the Article
content loading and viewing, for clarity and consistency.
2006-01-13 00:29:20 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Tim Starling
81217f55a0
* Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
...
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Rob Church
f1296ef2d2
* (bug 4426) Add link to user_talk page on image pages
2005-12-30 04:52:50 +00:00
Brion Vibber
2ec5f7958b
* Add 'GetInternalURL' hook to match the GetFullURL and GetLocalURL ones
2005-12-26 07:14:42 +00:00
Antoine Musso
2ca68a256d
Clean up unused globals!
2005-12-04 18:27:59 +00:00
Brion Vibber
40745cfef8
* (bug 153) Adjust thumbnail size calculations to match consistently;
...
patch by David Benbennick
2005-12-04 08:52:01 +00:00
Brion Vibber
baed3966b0
* (bug 2111) Collapsable exif metadata table, clean up display
...
List of non-collapsing fields is in [[MediaWiki:Metadata-fields]].
Intro paragraph is in [[MediaWiki:Metadata-help]].
2005-11-28 23:56:35 +00:00
Brion Vibber
bca270619f
* (bug 2740) Accept image deletions on 'enter' submit from MSIE
...
Confirmation checkbox is gone now; the submit button had been
coopted to replace it in the submission variables, but some
user agents don't go looking for a default button when you
submit by hitting 'enter' in a text entry widget. Just check
that the form was posted; we already have the edit token check
to confirm that it's not a forged request.
2005-11-16 08:15:36 +00:00
Brion Vibber
8f618346f8
* (bug 3643) Fix image page display of large images with resizing disabled
2005-10-07 21:43:55 +00:00
Ævar Arnfjörð Bjarmason
478e7b84b8
* Tweaks to function makeMetadataTable()
2005-09-20 18:03:08 +00:00
Ævar Arnfjörð Bjarmason
54c96537f2
* Showing width/height in image histories
2005-09-19 12:54:18 +00:00
Brion Vibber
aff0023035
* Use the real file link instead of the default-size rasterized version for
...
large SVG images on image description page
* Include the file name/type/size line for non-resized images
2005-09-13 01:27:21 +00:00
Brion Vibber
3d3ebe8216
* (bug 3127) Render large SVGs at image page size correctly
2005-09-10 23:01:27 +00:00
Brion Vibber
22f6120459
* Add 'reupload' and 'reupload-shared' permission keys to restrict new
...
uploads overwriting existing files; default is the old behavior (allowed).
2005-09-05 06:16:48 +00:00
Niklas Laxström
c4162ea5ef
Wikitext here also
2005-08-20 12:01:08 +00:00
Niklas Laxström
c3072720b2
Include the dot
2005-08-20 10:49:46 +00:00
Niklas Laxström
9ef36be04b
Allow wikitext again in sharedupload
2005-08-20 10:48:15 +00:00
Brion Vibber
af2177edfd
Code cleanup: normalize case for intval(), strval(), floatval() calls.
2005-08-16 23:36:16 +00:00
Niklas Laxström
f2cfcfdd99
*html-safety fixes
...
*made some things localizable or better localizable
2005-08-12 17:18:53 +00:00
Brion Vibber
f2b9274bce
* (bug 3117) Fix display of upload size and type with tidy on.
...
Wikitext blocks should never be inserted in the middle of a line,
they are expected to be block elements!
2005-08-12 04:44:43 +00:00
River Tarnell
b817c0c15f
merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively.
2005-08-02 13:35:19 +00:00
Niklas Laxström
be70c2e9da
Some shared upload fixes
2005-07-13 15:35:22 +00:00
River Tarnell
2b23eba0ef
add message before commons desc
...
html, not wikitext
2005-07-04 03:10:20 +00:00
River Tarnell
c08b3a2bd1
show article text before commons text
2005-07-04 02:59:23 +00:00
Erik Moeller
ce7cefb93e
don't show link to licensing info if info is already transcluded
2005-07-03 06:06:57 +00:00
River Tarnell
90bc976ea5
don't display "Upload a new version" etc. for commons images, it has no meaning
2005-07-03 05:21:06 +00:00
River Tarnell
8e35c6da67
fixes from live site
2005-07-03 05:01:21 +00:00
River Tarnell
8e2724711f
fixes for action=render on image pages
2005-07-03 04:56:53 +00:00
River Tarnell
b90802e4ce
typos
2005-07-03 04:46:44 +00:00
River Tarnell
f392152834
fetch commons descriptions for display on local wikis
2005-07-03 04:40:07 +00:00
Brion Vibber
f8b783977e
* (bug 2656) Fix regression: prevent blocked users from reverting images
2005-07-01 21:15:31 +00:00
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