Brion Vibber
629435171a
* (bug 9411) Fix for shared image descriptions using query-string titles
...
Extracted URL-query-append logic from Title to wfAppendQuery(), using this in two places now.
2007-03-26 14:33:08 +00:00
Brion Vibber
0b0eed5cba
Fix for 'shareddescriptionfollows' message in some non-standard languages (noticed on simple); use wfEmptyMsg() check
2007-03-18 03:44:32 +00:00
Brion Vibber
9150412fe7
For now revert the rev_deleted branch merge; don't want trunk to get too far gone before changes are reviewed!
...
Reverted: 20511, 20510, 20507, 20474, 20461, 20460, 20457, 20448, 20446
2007-03-16 16:01:07 +00:00
Aaron Schulz
2448539ad9
*Merge in phase3_rev_deleted/includes
2007-03-14 15:50:06 +00:00
Raimond Spekking
a9e30b0b6b
* (bug 7782) fix for .svg
2007-03-05 19:53:41 +00:00
Raimond Spekking
c97d076ed1
* (bug 7782) Standardisation of file info at image description pages.
...
* tweak formatSize/Linker.php for smarter output of big numbers
* RELEASE-NOTES forgotten in r20044
2007-02-27 18:27:11 +00:00
Raimond Spekking
10741f6f13
Suppress external weblink arrow for uploading a new image version
2007-02-09 22:19:54 +00:00
Antoine Musso
a27383b672
Fix #8858 : handle $wgImageLimits changes correctly
2007-02-02 16:22:22 +00:00
Brion Vibber
64e572519f
* Fix multipage selector drop-down for DjVu images to work when title
...
is passed as a query string parameter; we have to pass the title as
a form parameter or it gets dropped from the form submission URL
2007-01-26 12:10:06 +00:00
Brion Vibber
455e77d168
Fix fix for 8652 (failures with bad XML metadata for DjVu files)
...
The mid-level functions in Image now fail gracefully on bogus data, as happens when the djvutoxml executable is missing.
Removed the bogus exception check in ImagePage high-level code (which actually just causes a fatal error by calling a nonexistent method :)
Also changed Image::initializeMultiPageXML to do clean lazy loading as Image::load does, and to return true/false as to success/failure for cleaner code using it.
2007-01-26 12:00:04 +00:00
Aryeh Gregor
414fca2323
(bug 8652) Catch exceptions generated by malformed XML in multipage media. Note: not tested, since I don't have all that fancy image-using stuff set up (:P), but it's just a try/catch block, so at worst it just won't work. Better than having the entire page crash due to an unhandled exception . . .
...
Incidentally, should we maybe use set_exception_handler()?
2007-01-25 03:07:39 +00:00
Nick Jenkins
f88c771756
The war on redundant ampersand usage!
...
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"
For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.
Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
f5e16ebe09
userCan(Edit|Create|Move) are deprecated : do not use them
2007-01-20 17:58:38 +00:00
Antoine Musso
c771fc9c96
Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
2007-01-20 15:09:52 +00:00
Niklas Laxström
d18b005a6d
* plaintext
2007-01-17 18:42:04 +00:00
Ilmari Karonen
81befad1cf
Quick fix to make diffonly work properly on category and image pages. Should probably do something cleaner, but this'll do until I can figure out what the cleanest colution is.
2007-01-17 05:01:54 +00:00
Nick Jenkins
784e69d028
For the "includes/" directory:
...
* removing unused local vars
* removing used global declarations
* adding FIXMEs against extract() calls and lines that seem to be using uninitialized variables
* adding some array() declarations.
2007-01-12 10:03:51 +00:00
Aryeh Gregor
92ed0ffbd6
* (bug 532) Tweaked alt text for some interface messages
...
* (bug 8231) Gave useful alt text to the main <img> on image pages
* (bug 371) Remove alt text for "Enlarge" icon on thumbnails
2006-12-22 20:31:10 +00:00
Antoine Musso
171945efed
User::getOption now accept a default value to override default user values
...
this makes it consistent with WebRequest::get* methods. Corrected code in
various places accordingly.
2006-12-14 20:28:38 +00:00
Nick Jenkins
5646173bb2
Would probably be wanting "$wgStyleVersion" rather than "wgStyleVersion", otherwise if metadata.js changes can bump $wgStyleVersion till the cows come home, but still won't cause it to be refreshed ;-)
2006-11-23 08:37:52 +00:00
Nick Jenkins
14c53b728f
Code housekeeping stuff (and barring any stuff-ups on my behalf, there should be no changes in behaviour whatsoever after this) -
...
* removing some unused global declarations.
* removing or commenting out or adding comments for unused local vars.
* Adding one or two local var declarations.
* Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness].
* remove one or two pass-by-reference function declarations where the value is not modified.
* Adding some braces to if-else blocks.
* In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether.
* Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences.
... up to "LinksUpdate.php" in the includes/ directory.
2006-11-23 08:25:56 +00:00
Aryeh Gregor
2b109a6dc4
(bug 7554) The correct MIME type for SVG images is now displayed on the image page (image/svg+xml, not image/svg). This is a hack because it only affects display, and doesn't correct the internal storage. I don't know how the latter works, so I wasn't confident touching it.
2006-11-22 00:25:57 +00:00
Tim Starling
36ed0cd96c
Reverting 17479/17480, breaks subclassing of Linker methods by skins. See my comment on bug 7405.
2006-11-08 07:12:03 +00:00
Nick Jenkins
fa239349f2
* (bug 7405) Make Linker methods static. Patch by Dan Li.
2006-11-08 05:21:15 +00:00
Tim Starling
a3b490d2c4
* Made special page names case-insensitive and localisable. Care has been taken to maintain backwards compatibility.
...
* Used special page subpages in a few more places, instead of query parameters
2006-10-30 06:25:31 +00:00
Brion Vibber
3af8ce82b9
* Added global $wgStyleVersion to centralize bumping CSS and JS file versions
...
for cache-friendly style and script updating
2006-10-13 21:48:19 +00:00
Tim Starling
3005679b0e
* Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
...
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded.
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
2006-10-03 13:00:52 +00:00
Jens Frank
78ab955e98
add missing wgLang definition
2006-09-13 20:43:04 +00:00
Brion Vibber
ce7a9631d7
* Set default disabled values for DjVu render options
...
* Added Xml::option() for generating <option>s easily
* Localized page numbers in drop-down for DjVu page selection
* Fixed linktrail for vi
2006-09-06 08:53:02 +00:00
Jens Frank
7f7e79022b
(bug 6420) Render thumbnails for djvu images, show multipage preview on image page
2006-08-13 17:34:48 +00:00
Rotem Liss
241676caf2
Removing the last references to OutputPage::sysopRequired() and OutputPage::developerRequired() (mostly using OutputPage::permissionRequired(), but in one case - reverting of a protected image - OutputPage::readOnlyPage is better), and throwing an exception when calling them; removing two useless comments.
2006-08-08 13:58:25 +00:00
Antoine Musso
61967dadc4
Code quality: makes imagePage::doDelete compatible with article::doDelete
2006-07-11 19:58:08 +00:00
Antoine Musso
93154120cc
Remove forced dereferencements (new() returns a reference in PHP5)
2006-07-11 14:11:23 +00:00
Rotem Liss
88cbeb2d4b
Direction mark between the image file name and its size in the image page, to prevent confusion.
2006-07-05 19:43:06 +00:00
Tim Starling
d052acf220
suppressing thumbnail generation in more places
2006-07-05 06:06:58 +00:00
Tim Starling
9165ef2c4b
Changed the image directory global functions, they no longer create the directory before they return it. This was inefficient, especially due to the need for multiple NFS stat calls for every image shown on a page during parse. The caller is now required to create the directory if necessary, and it can do so with the recently souped-up wfMkdirParents().
2006-07-04 14:20:52 +00:00
Tim Starling
0e2714b61d
Added a new method to update the cache of all pages linking to a given page without using excessive time or memory. This turns out to be a common operation in MediaWiki, I needed to fix callers in a lot of files. Backwards compatibility is maintained (of course). Also did some cleanup in Article.php, another 3 years of that and it'll be looking pretty. New job type added to the job queue, some refactoring done in JobQueue.php to support it.
2006-06-18 12:42:16 +00:00
Rob Church
4b5c01369d
Use standard linker functions to make user and tool links; fixes a bizarre blip I've just noticed on a local install.
2006-06-16 14:20:17 +00:00
Brion Vibber
8a42f0b1a8
(bug 2099) Deleted files can now be archived and undeleted, if you set up an appropriate non-web-accessible directory.
...
Set $wgSaveDeletedFiles on and an appropriate directory path in $wgFileStore['deleted']['directory']
2006-06-16 01:16:45 +00:00
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