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
d8c04540b7
Move revision deletion constants into Revision::
2006-06-06 10:54:23 +00:00
Brion Vibber
00015b8bf2
* Fix fatal error when specifying illegal name for manual thumbnail
2006-06-03 00:24:04 +00:00
Erik Moeller
1eeb7019c8
fix magic => section links (from edit summaries) to sections that have links of the type [[:Image:Foo.jpg]] in their title
2006-05-31 07:29:02 +00:00
Rob Church
70ef86af58
* Remove redundant extra span tag
...
* Fix parser test for self-links
2006-05-27 00:31:06 +00:00
Rob Church
5990996523
(bug 6103) Wrap self-links in a CSS class ("selflink")
2006-05-26 23:15:37 +00:00
Brion Vibber
1d281db39f
* (bug 5523) $wgNoFollowNsExceptions to allow disabling rel="nofollow" in specially-selected namespaces.
...
Patch by Ilmari Karonen, http://bugzilla.wikimedia.org/attachment.cgi?id=1789&action=view
2006-05-22 21:17:38 +00:00
Niklas Laxström
edbbb4970b
* Don't use content language for talk link
2006-05-08 16:20:59 +00:00
Antoine Musso
69689725c1
Switching from phpdoc to doxygen (use less than 32MB of memory).
...
Run maintenance/mwdocgen.php to generate doc in ./docs/html/ .
2006-04-19 15:46:24 +00:00
Gabriel Wicke
6dd3edac2d
special case: don't return an empty table, fixes test case
2006-03-24 16:07:50 +00:00
Gabriel Wicke
6e39f46aaa
Make size of thumb box for non-existent images consistent with common 180px default size; fixes a test case
2006-03-24 16:06:57 +00:00
Lupin
867bd26aa9
unused globals removed
2006-03-18 01:06:57 +00:00
Brion Vibber
16047ca2b7
* Don't URL-decode in the title attribute for URL links; it can produce false
...
results that don't code back to their original values.
2006-03-17 01:02:14 +00:00
Brion Vibber
7241c48e61
* Add a clickable contribs link in user tool links (rc, watchlist, diff view)
...
to see how people like it. (There was one in the old hacked-up diff view.)
2006-03-16 21:17:32 +00:00
Brion Vibber
103be1dda1
* Further work on rev_deleted; changed to a bitfield with several data-hiding
...
options. Not yet ready for production use; Special:Revisiondelete is
incomplete, and the flags are not preserved across page deletion/undeletion.
To try it; add the 'deleterevision' permission to a privileged group.
Also split some functions from GlobalFunctions to XmlFunctions.php, added
some convenience functions for building form controls, some more Linker
conveniences for formatting various types of standard link clusters.
2006-03-16 19:04:25 +00:00
Lupin
c7408b9223
trailing whitespace removal
2006-03-11 17:13:49 +00:00
Lupin
3c75c6d69d
(bug 4855) Section edit links now have the section name in the title attribute
2006-03-04 03:24:33 +00:00
Magnus Manske
cc94cc77ae
Fix for parser test "Magic links: PMID incorrectly converts space to underscore"
2006-02-22 09:11:59 +00:00
Magnus Manske
4b512f31d2
Fix for parser test error "Image link to nonexistent file (bug 1850)", both "good"
...
and "bad"
2006-02-07 17:50:25 +00:00
Tim Starling
55fa614fe8
Report errors from ImageMagick convert back to the user. Specify output bit depth when calling convert, for those people who are using an inefficient Q16 binary for scaling (i.e. almost everyone). Tweaked -quality.
2006-02-06 05:19:46 +00:00
Tim Starling
9e0ee5e640
documentation, code cleanup
2006-02-01 04:34:47 +00:00
Brion Vibber
3dd56202e1
use wfRegexReplacement() which was added a little while ago to cover this silly regex case
2006-01-19 06:29:41 +00:00
Brion Vibber
33fb226abf
* Add wfClone() wrapper since we're still using PHP 4 on some servers.
2006-01-13 20:13:58 +00:00
Brion Vibber
6e3edf5bee
* Linker::formatComment corrupted the passed title object on PHP 5
...
if the comment included a section link. Use clone() to make a safe copy.
2006-01-13 19:58:23 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Tim Starling
17fe34b74f
Fix #1 for WMF vulnerability
2006-01-03 00:51:57 +00:00
Tim Starling
1c2135c924
Removed NaodW29 completely, never again will it show its ugly face. Necessitated by recurring input validation issues -- most are avoided by using a randomly selected string instead of a fixed string.
2005-12-21 14:02:20 +00:00
Ævar Arnfjörð Bjarmason
95441782ba
* Support a third paramater to Linker::commentBlock() that indicates whether or
...
not the comment is from a deleted revision.
2005-12-08 20:19:33 +00:00
Brion Vibber
63ba45b141
* (bug 4207) Wrong image size when using 100x200px syntax to scale image up
...
patch by David Benbennick
http://bugzilla.wikimedia.org/attachment.cgi?id=1152
2005-12-07 22:57:22 +00:00
Jens Frank
503cf7e7e2
Revert last change, was already fixed in the meantime
2005-12-06 22:37:12 +00:00
Jens Frank
41d064c9b2
Avoid FATAL ERROR when creating thumbnail of non-existing image
2005-12-06 22:33:47 +00:00
Brion Vibber
da08d210bc
Define $thumbUrl so it isn't undefined on failure
2005-12-05 06:35:08 +00:00
Brion Vibber
09da7fb96c
* (bug 4167) Fix regression caused by patch for bug 153
...
New code didn't check for null thumbnail (deleted or nonexistent images)
2005-12-05 06:14:49 +00:00
Jens Frank
0e51728978
Return error message instead of fatal abort
2005-12-04 20:32:13 +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
Antoine Musso
c873c605da
* code formatting
...
* add 'summary' attribute to toc table element (accessibility)
2005-12-04 01:12:54 +00:00
Brion Vibber
1e4303ef17
* (bug 3806) Gracefully fall back to client-side scaling on |thumb| image
...
that passes $wgMaxImageArea
2005-10-28 00:04:30 +00:00
Tim Starling
69e2b7946c
Fixed infinite loop in formatComment due to backreferences in preg_replace replacement string
2005-10-12 16:53:30 +00:00
Ævar Arnfjörð Bjarmason
2334b27a95
* the linkTrail language function should be used to get the linktrail
2005-10-09 20:23:46 +00:00
Brion Vibber
f19f74650e
* (bug 2800) Don't scale up small images on |thumb| without explicit size
2005-09-12 22:46:13 +00:00
Brion Vibber
bec6c9c921
* (bug 3210) Fix Media: links with remote image URL path
...
Someone changed how the noparse links handling worked without updating all uses.
2005-08-21 00:38:05 +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
efca2a63ee
Bug 3116: Division by zero on [[Image:Foo.png|123x123px|]]
...
See Bug 3129
2005-08-16 13:27:00 +00:00
Niklas Laxström
d185d632a0
small fix & documentation
2005-08-02 11:49:53 +00:00
Jens Frank
804f9a26d3
Removed unused global
2005-07-26 16:07:14 +00:00
Ævar Arnfjörð Bjarmason
47eb621c0d
* Fixed a typo that caused warnings
2005-07-25 21:44:15 +00:00
Brion Vibber
b0c41ad13b
* (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3
...
* (bug 2931) Fix additional notices on reference use in PHP 4.4.0
2005-07-22 11:29:15 +00:00
Antoine Musso
daf5f83b91
Fix #153 path by <stehan dot walter at epfl dot ch>
2005-07-08 10:18:14 +00:00