Commit graph

694 commits

Author SHA1 Message Date
Tim Starling
85fa7504e6 * Split off ultimate base class FileRepo from FSRepo
* Use rawurlencode() for paths instead of urlencode()
* Moved functionality of LocalFile::loadFromFile() to a public static function. This allows Special:Upload to entirely avoid loading metadata from the (potentially remote) store. Changed purgeMetadataCache() to use loadFromDB() instead of loadFromFile().
* Redefined private virtual URLs, giving them a repo name component instead of a host.
* Moved is_writable($wgUploadDirectory) in SpecialUpload.php to the repo
* Added some filename validation to the FSRepo's store/publish
* Changed store and publish to use relative destinations instead of absolute, as was documented
* Deprecated File::recordUpload()! Now use upload() to do both publish and record. Moved the UI bits to SpecialUpload.
* Create a null revision on reupload
* Changed most of the member variable names in UploadForm. $this->mUpload followed by some ambiguous word or abbreviation was not a good naming convention. Also did some reformatting and assorted code cleanup.
2007-06-16 02:55:25 +00:00
Brion Vibber
b802e2a780 * (bug 8458) Limit custom signature length to $wgMaxSigChars bytes 2007-06-13 16:28:19 +00:00
Raimond Spekking
c1e9702013 * (bug 8734) Different log message when article protection level is changed
Based on a patch of Max Semenik
* [[ ]] in protection log related messages removed as the page name is already linked.
2007-06-13 11:08:57 +00:00
Brion Vibber
d23596ede5 close comment so that $wgSiteNotice is defined again -- broken since r22897 2007-06-11 19:42:03 +00:00
Raimond Spekking
12379bf1ed Do not show blockemail checkbox when blocking an IP 2007-06-11 10:07:17 +00:00
Rob Church
56ee93f5c6 (bug 9679) Improve documentation for $wgSiteNotice 2007-06-10 23:21:26 +00:00
Rob Church
92dd46cb0b Tweak "recreating-deleted" warning appearance under Monobook, Cologne Blue (don't need a border or colourisation in Chick or other skins, not appropriate) 2007-06-10 16:43:14 +00:00
Daniel Cannon
73f6335ab6 Reworked e-mail blocking. To be enabled for a user, it now requires that $wgSysopEmailBans == true and that the user has the right "blockemail". 2007-06-07 21:15:59 +00:00
Rob Church
d90c0adce7 * (bug 8989) Blacklist 'mhtml' and 'mht' files from upload
* Trim release note from bug 7997
2007-06-07 20:49:34 +00:00
Daniel Cannon
7d3eb4accd (bug 7997) Added ability to Special:Blockip to block users from using Special:Emailuser. 2007-06-07 17:31:08 +00:00
Brion Vibber
72a4abe588 * Skip additional setting of include_path in commandLine.inc (for non-Wikimedia mode)
* Fix some scripts that assumed include_path was set with various additional directories
Stuff now seems to mostly work when not overriding include_path.
Taking that out of LocalSettings is the next step... whee!
2007-06-06 16:01:14 +00:00
Rob Church
fa5dec53ce Clarification for $wgRestrictionLevels 2007-06-05 01:29:05 +00:00
Rob Church
e68b7441c9 Had a bash at cleaning up the horrendous-looking deletion log on the edit page:
* Suppress if no deletion log entries
* Provide a message to explain what it is
* Allow the whole thing to be dismissed
* Remove the mess in Article
* Some prettification
2007-06-04 23:43:08 +00:00
Tim Starling
52ddf77a9c Partial implementation of $wgCapitalLinks differences between local wiki and file repository. Description pages don't work when $wgCapitalLinks=true and initialCapital=false, but it should work well enough in the converse situation. 2007-06-03 10:44:27 +00:00
Tim Starling
52fe665df7 Added $wgArticleRobotPolicies 2007-05-31 23:09:36 +00:00
Tim Starling
e1f1a19b7e Fixed a few filerepo bugs, added some documentation 2007-05-31 01:43:41 +00:00
Tim Starling
ed4303922f Merged filerepo-work branch:
* Added support for configuration of an arbitrary number of commons-style file repositories.
* Split Image.php into filerepo/File.php and filerepo/LocalFile.php
* Renamed Image::getImagePath() to File::getPath()
* Added initial support for timestamp-based file fetching (OldLocalFile), to be expanded upon by aaron.
* Changed the interface for Image/File object creation: use wfFindFile() or wfLocalFile() depending on semantics
* ImageGallery::add() now accepts a title object as the first parameter
* Moved file handling operations on upload from SpecialUpload to File
* Removed path-related functions from ImageFunctions.php. Removed static path accessors from File. 
* Added a Content-Disposition header to thumb.php output
* Improved thumb.php error handling
* Updated the unit test suite to kind of partially work with modern computers. RunTests.php doesn't work just yet. Fixed an actual regression that the test suite detected -- moved some defines to Defines.php where they will be loaded consistently.
2007-05-30 21:02:32 +00:00
Brion Vibber
aeb877cba0 * Add Google Wireless Transcoder to the Unicode editing blacklist 2007-05-30 15:24:36 +00:00
Antoine Musso
a01392f00c Rename $wgSlaveLagOhNo (r22310) to $wgSlaveLagCritical. 2007-05-24 18:06:21 +00:00
Raimond Spekking
0e2a5d6aff Use proper CSS class instead of hardcoded style for new thumb parameter 'border', per hint of Brion 2007-05-23 20:09:55 +00:00
River Tarnell
f5ea63185c "Changes newer than 1 seconds may not be shown in this list." is kind of ridiculous. make the warning and "more obvious warning" thresholds configurable, default 15 resp. 30 seconds. 2007-05-21 23:21:29 +00:00
Raimond Spekking
f8014e24e5 Introducing new image parameter 'upright' and corresponding variable $wgThumbUpright.
This allows better proportional view of upright images related to landscape images on a page without nailing the width of upright images to a fix value which makes views for anon unproportional and user preferences useless
Usage: 
* [[Image:pix.jpg|thumb|upright|caption]] = Upright image will be scaled down by $wgThumbUpright (default 0.75, seems to me the best value)
* [[Image:pix.jpg|thumb|upright=0.6|caption]] = Upright image will be scaled down by 0.6
Size of thumb is always rounded to full __0 px to avoid odd thumbsizes and spare the cache

If used in combination with a width, upright will be ignored.
2007-05-21 18:56:03 +00:00
Brion Vibber
d801c01f1a Revert r22245 and all its monster offspring...
Adding a class for the example is not only ugly, it's fragile -- customizations to the actual threshold will have no effect on the sample.
The sensible thing is to construct an actual bit of sample text using the actual classes -- a null link (<a href="#">) with appropriate class would show the effect nicely and be robust to customizations.
2007-05-21 18:45:31 +00:00
Rob Church
cc2598b654 (bug 9886) Give a sample stub link in stub threshold label in preferences
Not the most elegant solution, but all the alternatives suck. Toggle messages still allow HTML, as far as I can see. Running the thing through the parser is overkill and produces useless paragraph and other unwanted nonsense, too.
2007-05-18 21:10:36 +00:00
Rob Church
8b5fbb8f6e * (bug 9628) Show warnings about slave lag on Special:Contributions, Special:Watchlist - adding this to other pages is quite simple
* A little release notes tweaking
2007-05-18 20:17:53 +00:00
Brion Vibber
8315cbe263 * Right-align diff line numbers in RTL language display
Use .diff-lineno class instead of hardcoding a <strong> and an alignment. Leaving default alignment does the right thing in both LTR and RTL; forcing left was unnecessary.
Also swapping alignment for the +/- marker column to improve look on RTL.
2007-05-17 18:33:00 +00:00
Brion Vibber
3cc08e9fc2 Another tweak for wide diffs: there *is* a CSS 3 draft property (word-wrap: break-word) which can force long words to break instead of just the scrolling hackaround. Yay!
Still no love in Firefox or Opera, but fixes Internet Explorer and Safari.

works in:
	Safari 2.0.4
	MSIE 7.0/Win
	MSIE 6.0/Win
	MSIE 5.2/Mac
doesn't work in:
	Opera 9.20
	Firefox 2.0.3
	Konqueror 3.5.6
	iCab (wraps at punctuation but not in mid-word)
2007-05-17 15:02:26 +00:00
Brion Vibber
4376a04946 * (bug 1438) Fix for diff table layout on very wide lines.
Diff style rules have been broken out to common/diff.css,
  and the dupes removed from the default skin files.
  Skins can still override the default rules.

Improvements over r22192, now known to work in:
* Firefox 2.0.0.3
* Opera 9.10 and 9.20
* Safari 2.0.4
* Konqueror 3.5.6
* MSIE/Win 7.0 (wide cells may produce vertical scrollbars as well)
* MSIE/Win 6.0 (wide cells are cropped instead of scrolling)
* MSIE/Mac 5.2.3 (wide words break instead of scrolling)
* iCab 3.0.3 (some cells provoke unnecessary horizontal scrollbar)

I've cleaned up the diff table formatting a bit, moving some attributes
from the HTML to the style sheet and consolidating the duplicated styles
into a common/diff.css file which is conditionally loaded for diff views.

Individual skins or site/user CSS can still override that style if they wish.
2007-05-16 17:57:00 +00:00
Brion Vibber
6213efe017 * (bug 1438) Fix for diff table layout on very wide lines for Gecko and
Opera-based browsers (incomplete, does not fix KHTML or MSIE)

This adds a <div> inside the <td> for diff content cells, and declares
the style for these <div>s to have overflow: auto.

In Gecko (tested Firefox 2.0) and Opera (tested 9.10 and over) this does
two things:
* The table layout treats the cells as the requested width instead of bloating
  out to the widest line of content, so the table stays visible on screen
* The individual cells that are too long get horizontal scroll bars

Unfortunately this doesn't have the hoped-for effects in other tested browsers:
* MSIE 7
* Safari 2
* Konqueror 3.5
* iCab 3

But neither has it any ill effects, so... it's a start.
There's probably some other way to force the layout algorithm to behave
that I haven't quite stumbled on yet... Might have better luck with the
fixed table layout option, though that seems less friendly to the little
+ and - columns.

The C++ diff plugins will have to be updated to support this scheme, but
no harm will be done if they're not (just they won't do anything new).
2007-05-15 21:24:56 +00:00
Antoine Musso
bd89eda2b2 #9896 Documentation for wgSquidServers. Patch by Loic Dachary. 2007-05-13 12:44:38 +00:00
Antoine Musso
7fdbce585b * Fix #6823: HTML dumping should not increment the page view counters.
* Small documentation for $wgDisableCounters.
2007-05-09 20:55:20 +00:00
Niklas Laxström
fdbc031fe5 * Use overflow: hidden instead of auto as suggested in bug 9854 2007-05-09 15:31:43 +00:00
Niklas Laxström
4d81a27d2c * 400px is too big for small screens 2007-05-09 13:13:34 +00:00
River Tarnell
54460939b6 incr style version 2007-05-09 12:43:24 +00:00
Niklas Laxström
1c2c044f68 * Hmm, better to increase styleversion too 2007-05-06 17:56:13 +00:00
River Tarnell
67044a931c - default value of $wgEnotifImpersonal should be false
- userMailer() needs to handle multiple recips in mail() path
2007-05-06 07:14:10 +00:00
River Tarnell
848d8f4611 allow enotif mails to be sent via job queue 2007-05-05 12:44:55 +00:00
River Tarnell
03df01a7fa enotif should have a way to send bulk mail without customisations, for large sites 2007-05-05 12:08:24 +00:00
Brion Vibber
2a1339fffd bump to 1.11alpha 2007-04-30 21:53:39 +00:00
Brion Vibber
d7b9b81987 * (bug 7629) Fix $wgBrowserBlackList to avoid false positive on MSIE
when certain plugins are present which alter the user agent
2007-04-30 20:53:31 +00:00
Tim Starling
f5b24acc05 Added $wgNamespaceAliases, has been used in Language.php for some time, but missing from here. 2007-04-30 12:06:46 +00:00
Brion Vibber
d0dc82e158 * (bug 9582) Members of bot group now mark edits patrolled by default 2007-04-26 16:16:42 +00:00
Antoine Musso
fc1a14eab7 Add support for microsoft bmp format. It simply give out the height and size,
we might want to transform them to png automaticly.
2007-04-22 17:34:09 +00:00
Tim Starling
644c2a89ff Added $wgUsersNotifedOnAllChanges, array of usernames who will be sent a notification email for every change which occurs on a wiki 2007-04-22 14:07:28 +00:00
Tim Starling
0a93752af6 * Removed mysql5 SQL files, obviously we're collectively incapable of keeping them up to date. They were littered with errors. The only deliberate difference appears to be the table character set, which can be adjusted programatically using a variable.
* Added table option variable to the SQL patch files, so now upgrading a non-standard schema won't leave your database horribly corrupted.
* Added sql.php, for sourcing SQL files with MediaWiki variable substitution.
* Disable MySQL's strict mode at session start for MySQL 4.1+, to avoid the various problems that occur when it is on.
2007-04-22 14:04:06 +00:00
Tim Starling
b15d8cffc4 * Introduced media handler modules for file-type specific operations: thumbnailing, img_metadata, capabilities, etc.
* Deprecated $wgUseImageResize, thumbnailing will be enabled unconditionally.
* Fixed interaction of page parameter to ImagePage with the HTML file cache
* Improved error reporting for image thumbnailing
* Fixed MIME type for SVG files, will be silently changed from image/svg to image/svg+xml after loading from the database.
* Workaround for djvutoxml bug #1704049 (poor performance). Use djvudump instead.
* Fixed odd behaviour in ImagePage on DjVu thumbnailing errors
* Improved error reporting for image thumbnailing
* Added sharpening option for ImageMagick thumbnailing
* Removed Image::selectPage(), added page parameters to getWidth() and getHeight(), deprecated Image::renderThumb() and Image::getThumbnail()
* Changed default contents of img_metadata to empty string instead of a:0:{}
* Moved responsibility for respecting $wgGenerateThumbnailOnParse from the UI to Image.php
2007-04-20 12:31:36 +00:00
Antoine Musso
8c3173b2c7 Fix 8590 : remove support for $wgUserHtml . Our specific HTML subset
is pretty much required to do anything cool in articles.
2007-04-16 13:50:38 +00:00
Rotem Liss
10516953dc Float the unblock and ipblocklist links in Special:Blockip to the left instead of the right in RTL interface. 2007-04-09 08:31:00 +00:00
Nick Jenkins
113bb1c772 Documentation tweaks to help documentation systems (Doxygen + PHPDocumentor)
pick up the appropriate tags, and documentation blobs for classes. This is 
the same as per r20769, but with the grouping changes (e.g. removing "@{{") omitted.
Please be advised that more related documentation tweaks may follow later - e.g. 
Doxygen generates a log file of warnings that is 574 Kb in size, when run over 
the just the trunk/phase3 code ... eek! Thankfully, much of that is just 
whining about functions without documentation   ;-)
2007-04-04 05:22:37 +00:00
Tim Starling
a7c8d93b7e * Fix extension of DJVU output
* Specify output type in ImageMagick SVG rendering command line
* Make some Image functions static, for the benefit of WebStore.
* Fixed SVG MIME type, will be image/svg+xml from now on with both accepted.
2007-03-31 17:15:00 +00:00