Commit graph

536 commits

Author SHA1 Message Date
Bryan Tong Minh
cdf224eac1 Follow-up r99911: fix tests
Add NullRepo to autoloader
2011-10-15 21:38:53 +00:00
Raimond Spekking
bdf825cae8 * Move <small> styling from message to shared.css
* Wrap complete section into a div
* Wrap "Other resolutions:" into a span and remove it from printing. Useless on paper.
* Add plural to 'show-big-image-other'
2011-09-12 12:46:20 +00:00
Robin Pepermans
75932b439d * r96737: set OutputPage->addWikiText() as an interface message by default
* r96760: use 'noflip' for $flip in OutputPage->addInlineStyle() so it's always a string
* Add some parameter documentation
2011-09-11 21:07:17 +00:00
Robin Pepermans
8f3ccf52f6 BetterDirectionality fixes:
* SkinTemplate: also set <div class="mw-content-ltr/rtl"> when action = historysubmit, so a diff displays correctly when you clicked on the "compare selected revisions" button on the history page
* ImagePage: set a dir attribute (according to the site content language) for the user comment in the file history
* FlaggedRevs: use CSS class sitedir-ltr/rtl instead of ambiguous rtl class
2011-07-11 00:39:41 +00:00
Alexandre Emsenhuber
d35d8dd82e Changed all dynamic calls to Linker methods into static ones in ImagePage.php.
ImageHistoryList is not used in extension, so I also removed ImageHistoryList::getSkin().
2011-07-06 14:45:19 +00:00
Robin Pepermans
7c624542f0 (bug 6100; follow-up to r91315) Being bold and removing $wgBetterDirectionality (and dependent wfUILang) in core, as most or all work is finished.
Also:
* Introduce classes mw-float-end, mw-float-start so we don't have to use inline css depending on wfUILang()/$wgLang (see HistoryPage and SpecialFileDuplicateSearch)
* Add direction mark to protection log
* Remove specialpageattributes as it is obsoleted by this commit (also fixes bug 28572)
* Add two direction marks in wfSpecialList, which makes ltr links on rtl wiki (and vice versa) display nicely as well (only on those special pages however)
* Revert r91340 partially: use mw-content-ltr/rtl class anyway in shared.css. Both ways have their [dis]advantages...
* Set the direction of input fields by default to the content language direction (except buttons etc.) in shared.css
2011-07-06 02:26:06 +00:00
Aaron Schulz
52968965e3 * Added getFileVersion()/setFileVersion() functions to OutputPage
* Removed getDisplayedFile() from FlaggedPage and simplified getFile()
* Cleaned up getIncludeParams() to just do formatting
* Made template/file IDs mandatory for RevisionReviewFormUI
2011-07-05 05:23:26 +00:00
Aaron Schulz
f6c6ecca6c Removed doPurge() from ImagePage.php, already moved to WikiFilePage 2011-07-04 19:19:36 +00:00
Alexandre Emsenhuber
cf6dd13fac * Changed action=revert to use a subclass of Action
* Added WikiPage::getActionOverrides() to be able to execute different actions depending on the namespace (obviously needed for action=revert). This is only used when the value of $wgActions for the corresponding action is true; so extension can still override this.
* Added Action::getDescription() to ease the change of the page header and the <title> element
2011-07-01 20:07:21 +00:00
Sam Reed
9b850aa604 Minor revert to r91246 2011-07-01 02:28:08 +00:00
Sam Reed
bdc31bb9bc Change usages of $wgUser->getSkin() in special pages to use $this->getSkin()
Fix trailing whitespace
2011-07-01 02:25:19 +00:00
Sam Reed
8c23c2c22d Merge r86683 from 1.17wmf1 2011-06-30 01:24:54 +00:00
Aaron Schulz
930ccf282c * Split off WikiPage class from Article, WikiFilePage class from ImagePage, and WikiCategoryPage from CategoryPage.
* WikiPage functions/fields are "magically" part of Article when accessed for b/c. Magic is kind of ugly but there are too many callers to make breaking changes atm. Some functions are just wrappers for WikiPage ones (were magic won't work).
* Added newFromID() to each WikiPage subclass (works around pre-existing inheritance problem).
* Added Page class for convenient type hinting and changed hints from Article -> Page. This lets things use WikiPage objects without getting type errors.
* Updated FlaggedPage to extend WikiPage. Worked around getOldIdFromRequest().
* Added setTimestamp() to WikiPage and moved some timestamp setting code from ParserCache to Article.
* Removed ampersands from $dbw arguments.
* @TODO: dependency inject user objects for WikiPage

The idea is to migrate things to use WikiPage, as the run-of-the-mill "new Article()" call doesn't care about $oldid and $wgRequest. After that, Article, ImagePage, and CategoryPage can be rewritten as an Action class or something sane (a Viewer class of sorts).
2011-06-29 22:09:51 +00:00
Chad Horohoe
b7c7bd3c95 (bug 29277) MediaWiki:Filepage.css not loaded on foreignwiki itself. Fixup to r68904. Yay Roan finally taught me how to use the resourceloader :D 2011-06-29 00:08:25 +00:00
Robin Pepermans
6f791165b7 Directionality improvements as part of bug 6100 (under $wgBetterDirectionality):
* Add CSS that should fix all LTR/LTR text on both LTR/RTL wikis, for the editsection link, TOC, and lists (ul/ol).
* Add a class mw-content-ltr/rtl for that.
* Change the divs on CategoryPage so it works wit that CSS.
This is the last relatively major issue for bug 6100.
2011-06-24 23:01:49 +00:00
Robin Pepermans
28ea73bc3a Directionality improvements as part of bug 6100 (under $wgBetterDirectionality) for the File namespace:
* exclude File namespace from div with lang & dir attributes, since most information on file pages is in the user language
* add <div id="mw-imagepage-content"> around the actual wikitext that is in the content language
2011-06-22 13:10:46 +00:00
Brion Vibber
87786e84dd Revert r86764, r89134, r86827 -- added a second opaque boolean parameter to Linker::commentBlock() which appeared to mostly just turn it into Linker::formatComment().
commentBlock() exists for the sole purpose of embedding a comment into parentheses if it exists so you can append it to a line of text -- if you're not putting stuff in parentheses, don't use commentBlock() because you're not generating a parenthesized comment block.
Opaque boolean parameters are also very poor form, especially when tacking on multiple ones. There was already a nasty optional '$local' boolean param, forcing all uses of this other parameter to add *two* parameters, making illegible stuff like 'false, false'.
2011-06-14 23:50:40 +00:00
Siebrand Mazeland
75c6696aa8 Use consistent notation for "@todo FIXME". Should update http://svn.wikimedia.org/doc/todo.html nicely. 2011-05-17 22:03:20 +00:00
Bryan Tong Minh
41231616b6 (bug 23002) Imagelinks table not updated after imagemove. The actual bug was inconsistent behaviour between imagelinks and pagelinks for redirects.
* Parser now only adds the redirect source to imagelinks, like it does in pagelinks
* ImagePage now shows the file redirects in-line with the normal "The following pages link to this file:"
** Added message linkstoimage-redirect
** Removed the separate file redirects section and removed associated message redirectstofile
** ImagePage::imageLinks will first fetch image links to the file, determine which are redirects, and if there are fewer links than the limit, fetch the redirect target links.
2011-05-14 12:20:45 +00:00
Raimond Spekking
629df89813 Embrace comment with () only when really needed. In Special:ListFiles and ImagePage the comment is shown alone in a table cell -> no () needed 2011-04-23 13:23:08 +00:00
Happy-melon
b7e2cdba69 (bug 28583) chase down and beat to death external calls of functions marked /*private*/, and make those declarations actually binding. Patch by yuvipanda. 2011-04-18 19:03:14 +00:00
Leo Koppelkamm
1e13a6c94f Free metadata toggle script from wikibits.js dependencies; rename to mediawiki.action.view.metadata.js 2011-04-16 11:54:43 +00:00
Brian Wolff
74f16767e7 Merge to trunk everything in img_metadata branch.
Hope I did this in an ok fashion. svn merge --re-integrate was giving me issues
so I just essentially over-wrote my working copy with the version at img_metadata.
2011-04-16 01:23:15 +00:00
Brion Vibber
562c357241 * (bug 28372) Fix bogus link to suppressed file versions in ForeignDBRepo
Based on patch by Umherirrender: https://bugzilla.wikimedia.org/attachment.cgi?id=8361&action=edit
If file is not local, we can't make a link so don't.
2011-04-06 18:45:27 +00:00
Brion Vibber
2073ab9b7f * (bug 28306) Fix exposure of suppressed usernames in ForeignDBRepo
Patch by Umherirrender: https://bugzilla.wikimedia.org/attachment.cgi?id=8360&action=diff
2011-04-06 18:23:07 +00:00
Sam Reed
ea056f5171 Fixup a few undefined variables and alike while checking REL1_17 2011-04-04 21:13:34 +00:00
Jack Phoenix
0a45ed6a91 ImagePage.php: add missing braces + other code style tweaks 2011-04-02 14:50:31 +00:00
Mark A. Hershberger
289c1d7771 Fixes Bug #28214 - When page not found, sends malformed HTTP/1.x instead of HTTP/1.1 in header of respons
Note that there are a few places in the source where headers are sent
with HTTP/1.0 instead of HTTP/1.1 but this patch doesa not address those
2011-03-25 03:36:18 +00:00
Happy-melon
ac5751ee48 Follow-up r84249: reimplement isAllowedAny(), and restore isAllowed() to only-accepting-one-parameter mode for the time being. 2011-03-18 21:07:05 +00:00
Happy-melon
81852ea1a6 Allow User::isAllowed() to take varargs. "is allowed X or Y" is by far the more common multiple permission check in core, so this is now the behaviour of isAllowed( X, Y ); also add isAllowedAll(...) for testing "is allowed X and Y". Has the nice side effect of adding visibility to a very old function. 2011-03-18 14:48:21 +00:00
Bryan Tong Minh
03a00bb732 (bug 2581, bug 6834) Added links to thumbnail in several resolutions to the file description page. The sizes are set by $wgImageLimits.
Not really happy about how it looks, perhaps only the numbers should be linked? See http://www.mediawiki.org/wiki/User:Bryan/Bug_2581 for options.
Removed message show-big-image-thumb, added show-big-image-preview, show-big-image-other, show-big-image-size.
2011-03-12 22:49:31 +00:00
Sam Reed
26a2544ebf Explicit variables, documentation, newlines, braces 2011-03-05 17:01:33 +00:00
Max Semenik
6f18e92bff Partial revert my accidental revert of r82366 in r82445. 2011-02-19 16:25:02 +00:00
Max Semenik
f5377b6d02 Bug 27518: Updater calls PopulateLogSearch before adding logging.log_user_text; populateLogUsertext not called 2011-02-19 11:49:14 +00:00
Jeroen De Dauw
4fdca4ed2e rem not needed die() and made vars actually private 2011-02-18 00:48:56 +00:00
Bryan Tong Minh
a1a6b005b6 Follow-up r79964: Fix double parsing of file info 2011-02-02 14:07:08 +00:00
Brian Wolff
ba220d501d (bug 2585) Image pages should send 404 if no image, no shared image and no
description page (To be consistant with how non-existant article pages act).
2011-01-16 00:43:56 +00:00
Daniel Friesen
39ab3cfc9f Implement Message::isBlank and Message::isDisabled.
And while we're at it... update a random assortment of code using wfEmptyMsg to use the new wfMessage class and our exists/isBlank/isDisabled methods.
2011-01-14 10:51:05 +00:00
Raimond Spekking
a23d2475aa Follow-up r79964: Use the existing message 'parentheses' instead of introducing an identical one. 2011-01-11 07:37:42 +00:00
Derk-Jan Hartman
35d16afa2a Move the () surrounding description strings of files, out of the description and into the interface.
Follows up r68324 and r68325
2011-01-10 22:18:08 +00:00
Bryan Tong Minh
02d3b7ad1d $wgMaxUploadSize may now be set to an array to specify the upload size limit per upload type.
Backwards compatible, if not set to an array, applies to all uploads. If set to an array, per upload type maximums can be set, using the file and url keys. If the * key is set this value will be used as maximum for non-specified types.
2011-01-07 22:12:05 +00:00
Tim Starling
ccfe5ad97b Fix for bug 26561: clickjacking attacks. See the bug report for full documentation. 2011-01-04 06:12:33 +00:00
Sam Reed
e76775e06f More unused variables 2010-11-30 18:44:50 +00:00
Sam Reed
ea0946c3bf ImagePage subclasses Article, therefore use parent::getContent() 2010-11-28 16:05:41 +00:00
Sam Reed
6b0d4abc64 Revert r77297, Won't be reverting MimeMagic
Mainly whitespace reverts here
2010-11-25 22:22:53 +00:00
Antoine Musso
6fe29c9c30 revert r76464
* mixed style changes and variable removing
* logic changes
* useful comments removed
2010-11-25 20:01:34 +00:00
Derk-Jan Hartman
a3ca8afa9f Followup to r76867. Only add canonical if there is no local page for the shared file.
Bug 25960
2010-11-19 01:40:56 +00:00
Derk-Jan Hartman
23d0b968d8 When displaying non-local File pages, add link rel=canonical.
Solves bug 25960
2010-11-17 00:23:30 +00:00
Sam Reed
b0fdcf2ed8 Add a few bits of parameter documentation 2010-11-15 15:49:52 +00:00
Sam Reed
10ecfeb03b Various unused variables, add some braces
Explicitally define some variables used in hook type calls
2010-11-10 19:49:04 +00:00
Roan Kattouw
445b2447ad (bug 25717) Fix "Hide/show extended details" toggle in image metadata table 2010-11-01 15:52:08 +00:00
Sam Reed
b5c9c3ddd6 Switch last few uses of while loops to foreach in phase3 2010-10-31 23:08:38 +00:00
Sam Reed
efd8358882 More deprecated method calls 2010-10-31 16:33:48 +00:00
Siebrand Mazeland
0c82513022 Follow-up r75499: initialise $anchorclose to prevent PHP Notice: Undefined variable: anchorclose on line 390. 2010-10-27 11:18:13 +00:00
Derk-Jan Hartman
cf67f54f4f Line endings in wikitext can introduce <p>'s, which was not really the intent here for the fullMedia div. 2010-10-27 01:56:23 +00:00
Derk-Jan Hartman
8c6db50896 Make the image page more consistent. Now all pages will have the fullMedia div. (with link, and file description)
Perhaps we should move the "Size of this preview:" and "No higher resolution available" markers into that div as well ? Feedback welcome.
2010-10-27 01:50:07 +00:00
Sam Reed
6b3b915353 Big attack on unused variables... 2010-10-14 20:53:04 +00:00
Roan Kattouw
32377424b9 Merging resourceloader branch into trunk. Full documentation is at http://www.mediawiki.org/wiki/ResourceLoader and a general overview has been posted on wikitech-li <http://lists.wikimedia.org/pipermail/wikitech-l/2010-September/049253.html>. One important change is that all JS is now loaded at the bottom, so any scripts assuming things from wikibits or whatever are present will fail. 2010-09-04 04:00:09 +00:00
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
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
Victor Vasiliev
6285e1c92f * (bug 14117) Image redirects from the shared repo now show "redirected from" 2008-12-30 17:17:16 +00:00
Aryeh Gregor
69d11310ff Improve ugly interface for Sanitizer::escapeId()
Calling it with no extra arguments will now assume that you're escaping
a whole id, not an id fragment, which is safer.  Also, instead of ugly
bitfield-based options, I've changed the options to use an array of
strings.  I fixed all callers in trunk.  Out-of-tree callers that were
using Sanitizer::NONE will get correct behavior, while those that were
calling it with no arguments will get slightly changed behavior (an x
will be prepended).  I think this is harmless enough that we can skip
back-compat cruft here.

This should cause no visible changes.  No parser test regressions.
2008-12-30 00:22:14 +00:00
Brion Vibber
2a815b10bb Cleanup for r44700 -- work on a clone of $wgTitle instead of modifying the fragment on the global object, which interferes with some other generated links outside the pager. 2008-12-23 17:58:22 +00:00
Aaron Schulz
2e3272b80c Add fragment to nav links to set location 2008-12-17 01:35:40 +00:00
Aaron Schulz
753cc671ca Fix bug where new image uploads would be reviewed but had "changes needing review" tag 2008-12-15 23:51:28 +00:00
Chad Horohoe
be374a912a War on wfElement() and friends. Call the Xml members directly, rather than using old wrappers. 2008-12-14 19:14:21 +00:00
Aaron Schulz
6ac97292d2 Remove comment 2008-12-14 07:12:03 +00:00
Aaron Schulz
0ca92d0bf5 (bug 12645) File histories should be paged 2008-12-14 07:10:42 +00:00
Ilmari Karonen
34fb6297cd Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
2008-12-01 17:14:30 +00:00
Alexandre Emsenhuber
9a6452960e Mark ImagePage::checkSharedConflictCallback() as public since it's passed to RepoGroup as callback function 2008-11-29 17:48:37 +00:00
Aaron Schulz
fbdb05fab3 *Remove getContent() side-effects
*Fix/set visibility
*Refactor deletion log stuff to helper function
*Add wfDeprecated( __METHOD__ ) to some places
*Various minor cleanup/spacing
2008-11-28 14:29:25 +00:00
Chad Horohoe
0848fa8b22 (bug 2077) Info on how to use external editor is vague. Minor tweak to the UI should make it a little more clear. 2008-11-18 19:57:03 +00:00
Siebrand Mazeland
0a9af4a884 Consistent casing for addHTML() 2008-11-06 22:20:29 +00:00
Rotem Liss
7b61b00333 Fixing HTML escaping. 2008-08-29 13:40:47 +00:00
Rotem Liss
2204974ba7 Show thumbnails in the file history list. The dimensions are the same as in the default image gallery. Patch by User:Agbad, rewritten by me. 2008-08-29 11:54:34 +00:00
Niklas Laxström
4618bb3e69 * Format numbers passed to messages
* Some whitespace changes
2008-08-08 21:31:38 +00:00
Brion Vibber
a8c59207ec Cleanup to cleanup -- keep the div name consistent! There's no reason to invent a new div id just because there's a different number of items. 2008-08-08 20:56:46 +00:00
Brion Vibber
6004c56463 Cleanup to r38799 ("Add a more descriptive message to the links-to-image section for the case that more than 100 pages link to a file.")
Lift out a little duplicated code for good style
2008-08-08 20:55:25 +00:00
Raimond Spekking
923f85f328 Add a more descriptive message to the links-to-image section for the case that more than 100 pages link to a file.
Ths existing link to Whatlinkshere at the end of the list is easily be overseen if not scrolled to the bottom.
Fixes the (cosmetic) bug that the list shows 101 entries instead of 100.
Question: Should we make the hardcoded limit of 100 configurable via DefaultSettings?
2008-08-07 18:46:18 +00:00
Chad Horohoe
07d9e2d766 Take Article::viewRedirect() public and have it return a string so it can be used other places, like EditPage for proper rendering of redirects on preview (bug 2333). +Docs here and there. 2008-08-02 02:39:09 +00:00
Raimond Spekking
c023318c02 Remove unused var $dims 2008-07-30 13:20:38 +00:00
Aryeh Gregor
650be91fb8 Refactor a bit preparatory to fixing bug 8068: rewrite the robot policy stuff in OutputPage to allow index and follow policy to be set separately. Also now validates input to setRobotPolicy(). And renamed setRobotpolicy to setRobotPolicy, too. If anyone was accessing $mRobotpolicy directly they're out of luck, though. 2008-07-23 19:05:43 +00:00
Aaron Schulz
69b77c726f Append subtitle to keep existing stuff for redirects (bug 14696) 2008-07-02 10:33:42 +00:00