Commit graph

378 commits

Author SHA1 Message Date
Sam Reed
380b6725d5 Remove some unused variables
Move variable in languages/classes/LanguageKu.php into commented code (used in comment)
2010-08-13 20:58:16 +00:00
Sam Reed
9efab26ecd Remove a few more unused variables 2010-08-13 08:09:52 +00:00
Sam Reed
8ce3c5cf23 Fixup some more wrong static usages 2010-07-25 21:08:34 +00:00
Sam Reed
d3f2b9a2c5 Article:: to self:: 2010-07-25 20:52:30 +00:00
Sam Reed
04f68827d0 Removal of unused globals
Removal of one setting of a variable to '', then not using further
2010-07-24 19:11:52 +00:00
Daniel Kinzler
f2614a71ad make image page respect different sizes of individual frames, as suggested by Markus Glaser. 2010-07-19 14:35:20 +00:00
Alexandre Emsenhuber
4bb00ba65c Fixed some doxygen warnings 2010-07-02 21:22:38 +00:00
Bryan Tong Minh
3136686db6 (bug 24212) Added MediaWiki:ImagePage.css which is also included on foreign client wikis. 2010-07-02 19:54:46 +00:00
Raimond Spekking
ac0d52614b Follow-up r68719: Simplify a bit per suggestions of Nikerabbit. 2010-06-29 14:37:39 +00:00
Raimond Spekking
7f0a8cf88a * Bug 8507 - Group file links by namespace:title on image pages
* Use proper Html::functions
* Add namespace specific CSS Id to the li elements to allow styling per namespace
2010-06-29 13:38:55 +00:00
Derk-Jan Hartman
8880967034 Bug 23851. Repair diff views for FILE pages that are redirects.
Diffs for FILE redirects will force diffonly == true because otherwise full images
are included into the rendering by DiffEngine.
2010-06-09 21:09:13 +00:00
Alexandre Emsenhuber
5dfc928820 Kill $wgTitle in ImageHistoryList::imageHistoryLine() 2010-06-03 19:28:13 +00:00
Platonides
b608000544 Bug 23699: Add trailing \n at the end of <div>s in wrapWikiMsg()
Patch by Umherirrender
2010-05-28 21:22:45 +00:00
Bryan Tong Minh
b37e425ba4 stylize.php on ImagePage.php 2010-03-20 22:58:48 +00:00
Alexandre Emsenhuber
c7901d2b5b * (bug 22364) Setting $wgUseExternalEditor to false no longer hides the reupload link from file pages 2010-02-05 14:07:18 +00:00
Chad Horohoe
a4e5e935b6 Mass convert NULL -> null. Left strings and comments alone, obviously. 2009-12-11 21:07:27 +00:00
Alexandre Emsenhuber
b3f46dd82a * (bug 21523) File that can have multiple pages (djvu, pdf, ...) no longer have the page selector when they have only one page 2009-12-04 11:33:50 +00:00
Siebrand Mazeland
e8a65f9e25 Update break notation to self enclosed and properly spaced 2009-11-14 20:59:15 +00:00
Bryan Tong Minh
9d64bbc404 * Add globalusage link to the file toc
* Add thumb of the file to Special:GlobalUsage
2009-11-08 11:09:20 +00:00
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