Commit graph

359 commits

Author SHA1 Message Date
Bryan Tong Minh
d3fe87c552 Add hook ImagePageAfterImageLinks for showing extra information on the image page after the imagelinks 2009-11-07 09:31:16 +00:00
Aaron Schulz
90dcb3c1f2 * bug 21267 change "show/hide" to "show", if user cannot submit Special:Revisiondelete
* Added revDeleteLinkDisabled() function
2009-10-30 02:14:22 +00:00
Aaron Schulz
99cb76d52a Use revDeleteLink() to remove duplication 2009-10-29 05:58:53 +00:00
Aaron Schulz
c2f7ea4d7b * Renamed deletedcontent to deletedtext
* Removed deletedrevision and used deletedhistory/deletedtext instead
2009-09-30 19:50:35 +00:00
Aaron Schulz
942a84716a * Split off deletedrevision (view only) right and give it to sysops
* Allow show/hide link on top revision just like history
2009-09-28 03:09:48 +00:00
Aaron Schulz
bd200238ac Revert r57002: already done when needed 2009-09-28 02:11:50 +00:00
Aaron Schulz
66168ded8a bolden show/hide links if oversighted 2009-09-28 02:08:05 +00:00
Alexandre Emsenhuber
69cf34264c * (bug 11264) The file logo on a file description page for documents (PDF, ...) now links to the file rather than the file description page 2009-09-26 09:25:15 +00:00
Bryan Tong Minh
4190640550 (bug 17747) Only display thumbnail column in file history if the image can be rendered. 2009-09-25 14:48:44 +00:00
Bryan Tong Minh
b5f01cb273 (bug 14117) "redirected" from is now also shown on foreign file redirects 2009-09-24 20:46:31 +00:00
Raimond Spekking
d6aeed5d87 Follow-up r56215: Replace hardcoded text with a new message.
Replace "images" with the generic "files"
Wrap message into a div with class=error
Add it to RELEASE-NOTES
2009-09-12 08:25:54 +00:00
Brion Vibber
a6e268086b Forward-port image manipulation disabling hack from wmf-deployment r53386.
Turning on $wgUploadMaintenance will disable deletion and undeletion of images; useful when performing maintenance on file servers to ensure that nobody's messing with your data while you work.
Note that $wgEnableUploads really should be disabled too or it'll be a bit silly. ;)
Could use localization and other polishing.
2009-09-11 23:36:28 +00:00
Aaron Schulz
b36244532e Removed old comment and depreciated <tt> tags 2009-09-04 00:29:20 +00:00
Alexandre Emsenhuber
6e8c8c7973 Fix notice: Use of UploadForm::userCanReUpload is deprecated. [Called from ImagePage::uploadLinksBox in includes/ImagePage.php at line 554] 2009-07-17 10:34:03 +00:00
Tim Starling
e373706cc6 Added $wgShowArchiveThumbnails, may be useful for file store backend load reduction. 2009-07-12 05:37:12 +00:00
Niklas Laxström
1f88206f3b Protect with newlines to prevent unexpected behaviour 2009-06-25 05:38:54 +00:00
Raimond Spekking
96cd3b9396 * Add class=wikitable to some tables on specialpages for better styling consistency
* Remove CSS definitions for these tables as far as possible
2009-06-17 18:05:03 +00:00
Tim Starling
99b4179087 Removed isMissing() calls from performance-sensitive code paths. Replaces live hack. Should hopefully avoid the total backend overload we saw when we deployed this feature initially. The feature could be reimplemented as a database field, img_missing, populated offline by a maintenance script. But doing an NFS stat() on page view is totally impossible. 2009-06-16 01:06:13 +00:00
Niklas Laxström
5ef6ef1d6f Fix regression probably from r50975 - link was not parsed 2009-06-15 13:20:40 +00:00
Siebrand Mazeland
6f9d6cbcf9 Fix double escaping issues. Related to r51559 and friends. 2009-06-15 12:32:59 +00:00
Siebrand Mazeland
88d789e939 * replace some use of deprecated makeKnownLinkObj() by link() in core
* use array type parameter instead of string to escapeLocalUrl(), getFullURL() and getFullUrl() for readability
2009-06-06 22:42:48 +00:00
Purodha B Blissenbach
f3ed84491e Message 'filehist-thumbtext' - date and time separated as of request by user "Der Umherirrende" at
http://translatewiki.net/w/i.php?title=Support&oldid=1243738#split_date_and_time
2009-06-01 21:29:31 +00:00
Tim Starling
bc35951c93 In Special:RevisionDelete:
* Refactored to remove massive duplication
* Removed page parameter and associated contextPage member variable, doesn't seem to do anything.
* Put ID lists into a single ids parameter and member variable instead of having one for each type.
* Fixed inappropriate call of Title::newFromUrl(), always wrong
* Don't pretend to use the return value from functions that don't return anything, this reduces readability.
* Use the table names for deleteKey/typeName values, they look more like English
* Use protected not private
* Remove requirement for log type to be specified in the target
* Use POST for RevisionDelete entry forms, to avoid URL size limits and issues with non-PATH_INFO URLs
* Don't purge all pages that use the given file
* LocalFile::purgeCache() already calls purgeHistory,() no need to do it again. But do call purgeDescription(). 
* Removed token from unhide=1 links, unnecessary
* Tokens are necessary on file streaming links, added them
* Fixed private data leakage due to incorrect use of LocalRepo::newFromArchiveName(). Non-existent placeholder file was returned which meant that $oimage->userCan(File::DELETED_FILE) was always true. Pass the archive name to tryShowFile() instead of the storage key.
* Using ls_field='oi_timestamp' is not correct, oi_timestamp refers to the timestamp of the revision in question, whereas the key that is stored is the timestamp of the previous revision (i.e. the timestamp in oi_archive_name). oi_archive_name would be more correct, although only half the field is used.

Elsewhere:
* Added missing message filehist-missing
* Fixed double asterisk in Status::getWikiText()
* Fixed escaping of the target parameter to Special:RevisionDelete from ImagePage
* Deleted FileStore.php. Deprecated in filerepo refactor except for get()/export() but somehow resurrected by RevisionDelete. Hopefully this will be the end of it. New interfaces will be added for wfStreamFile() in a later commit.
* Added convenience function File::getStorageKey(), factored out of Special:Undelete
* Added convenience function Revision::newFromArchiveRow(), factored out of Special:Undelete and Special:RevisionDelete
* Fixed notice in Special:Upload, uninitialised $pageText

FIXME: current revision can be suppressed on undeletion causing an unauthenticated unsuppress. Comments indicate this is a known issue. I fixed the parser cache pollution in this case but not the rest.
2009-06-01 11:37:06 +00:00
Shinjiman
5c4a625208 introudce 'file-anchor-link' message on the File description page instead of the message from the "File namespace"
rebuild messages for all languages
2009-05-30 09:24:20 +00:00
Niklas Laxström
34b5b44730 urlencode not needed anymore 2009-05-25 14:02:54 +00:00
Siebrand Mazeland
517484bb5e * feed arrays into getFullURL() for readability
* fix indentation (spaces to tab)
2009-05-25 13:53:48 +00:00
Purodha B Blissenbach
587645f641 Fix r50972 2009-05-25 13:42:47 +00:00
Robin Pepermans
623b9fcbd8 Fixing part of bug 14688 (upload restrictions):
* Only show upload links on file description if $wgEnableUploads = true and user *can* upload
* Don't say "You need to log in to upload", because it's possible that uploading is disabled for registered users as well and e.g. only sysops can upload (same for moving pages)
* And a small tweak: less code in SkinTemplate.php with same result
2009-05-24 20:45:31 +00:00
Chad Horohoe
fdbb1752ab Kill a bunch of unused $wgUser 2009-04-28 03:03:48 +00:00
Niklas Laxström
743e06d077 And some cleanup for image page 2009-04-27 11:18:49 +00:00
Niklas Laxström
f7cfa98323 * (bug 17614) Prev / Next links not need on ImagePage file history if less than limit 2009-04-27 10:21:38 +00:00
Victor Vasiliev
8843db0f12 * (bug 18420) Missing file revisions are handled gracefully now:
** Missing files are rendered correctly now (no thumbnail, no link to them)
** Missing files may be now moved, deleted and undeleted
2009-04-26 11:12:39 +00:00
Chad Horohoe
759fa18c8a (bug 18571) Purging image should always clear metadata cache. Sometimes the metadata is stale and the image does in fact exist. Patch by nephele. 2009-04-24 23:11:07 +00:00
Alexandre Emsenhuber
523b1cda38 * Use Linker::link()
* Whitespaces tweak
2009-04-07 16:37:29 +00:00
Chad Horohoe
d3d21cbb02 (bug 17617) HTML cleanup for ImagePage 2009-03-28 16:41:00 +00:00
Niklas Laxström
25506e8f15 * (bug 18190) Proper parsing in MediaWiki:Sharedupload message
* Also remove the lego thing: http://translatewiki.net/wiki/Support#shareduploadwiki-linktext_is_used_in_different_ways
2009-03-28 08:21:29 +00:00
Aaron Schulz
1046aee39e Fix url params for multi-item deletion by converting to CVS 2009-03-25 17:52:40 +00:00
Aaron Schulz
020cc6ef33 minor tweak: revisiondelete id url param is an array 2009-03-10 19:15:27 +00:00
Chad Horohoe
40fdd74fa9 Fix regression from r30602. 'noindex,nofollow' was being applied when local page text didn't exist for foreign images. Moved it to where it should be used, with 'noimage' 2009-02-26 20:10:48 +00:00
Chad Horohoe
a7733bbf0d Follow up to r46613 (Allow local redirects to foreign images):
* This doesn't work like it should. We seem to be returning metadata about the target (ie: it does in fact exist), but at some point it all goes null. Making a note in ImagePage
* Reverting RELEASE-NOTES until this is right.
2009-02-25 22:18:44 +00:00
Chad Horohoe
9c53eeadf9 (bug 14980) Make shareduploadwiki(-desc) a param to sharedupload. Also RELEASE-NOTES for adding repo names. 2009-02-17 23:18:40 +00:00
Chad Horohoe
884a7a80f4 * Add method to FileRepo to get the human-readable name of the repository (getDisplayName())
* Use this in ImagePage to show what repo the dupes are from
* Added default "shared repository" message for shared repos without names.
2009-02-17 22:27:10 +00:00
Chad Horohoe
082e0ad3df * Only show dupe messages for remote images once. Twice is redundant :)
* Phased out sharedupload(duplicate|conflict)(\-linktext)? messages (removed from en and messages.inc)
2009-02-17 21:33:12 +00:00
Raimond Spekking
b13fc73642 Cleanup image description page a bit:
* Remove the link to Special:FileDuplicateSearch from the "file history" section
  of image description pages as the list of duplicated files is shown in the 
  next section anyway.
* Add the link to Special:FileDuplicateSearch to the message 'duplicatesoffile'
2009-02-16 08:51:38 +00:00
Chad Horohoe
32f82aad9e (bug 17304) Fatal error in file history when File::transform() fails. 2009-02-01 23:09:56 +00:00
Chad Horohoe
02e48817da Handle this todo: Allow local redirects to foreign images to be displayed on the local wiki. We already store this data in the redirect table anyway. 2009-01-30 19:59:38 +00:00
Aaron Schulz
dc046d3632 Split off 'wpReUpload' into the old check 'wpReUpload' and the bool 'wpForReUpload' to avoid breakage. 2009-01-28 20:17:11 +00:00
Aaron Schulz
e56b962886 (bug 15811) Re-upload form tweaks
* Don't show license dropdown
* Use different message for summary box label
* Don't show "file exists" message
* Lock the destination name
2009-01-21 15:46:48 +00:00
Aaron Schulz
6950c890bf (bug 5071) Image appears above text when viewing diff of an image page
* Hide image/toc on diff view. Previously, img cluttered the top of the diff and you had to scroll down. Also, we have thumbnails for the history (and current) anyway.
2009-01-02 19:11:34 +00:00
Brion Vibber
4164ab50d8 Revert r45191 "* (bug 14117) Image redirects from the shared repo now show "redirected from""
Seems to be bizarrely adding a "redirected from" subtitle to *every* shared image page view, instead of to redirects. WTF?
2008-12-31 22:06:22 +00:00