Commit graph

487 commits

Author SHA1 Message Date
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
Chad Horohoe
f47aa05e78 Use redirect=no on redirects listed in file links. 2008-06-17 14:36:36 +00:00
Brion Vibber
7aa0eb40ca cleanup for r36190 -- remove extra parameters left over from wfMsgExt() call 2008-06-11 17:45:16 +00:00
Raimond Spekking
1509ad4d13 Tweak for r36189: Back to addWikiMsg but now with the appropriate parameter. Thanks to Nikerabbit who points me to the correct usage. 2008-06-11 12:53:33 +00:00
Raimond Spekking
3c8690d8c4 Reapply support of plural for 'linkstoimage', 'redirectstofile' and 'duplicatesoffile'
Now w/o breaking customized messages.
2008-06-11 12:07:58 +00:00
Brion Vibber
1266ee5ab6 Reverting r36139 -- broke wikitext in linkstoimage AGAIN. 2008-06-11 01:51:12 +00:00
Raimond Spekking
d3f564d27f Support plural for 'linkstoimage', 'redirectstofile' and 'duplicatesoffile' 2008-06-10 11:19:34 +00:00
Raimond Spekking
61fe8acfc5 * (bug 14146) Wrap usage section on imagepages into <div>s.
Follow up to r35516. Wrap this section to.
2008-05-29 03:44:45 +00:00
Raimond Spekking
2c7d284a59 * (bug 14146) Wrap usage section on imagepages into <div>s. 2008-05-28 19:51:18 +00:00
Aaron Schulz
c3232e2dc0 Remove unused var 2008-05-23 21:12:47 +00:00
Tim Starling
079a37ef22 In FlaggedRevs:
* Moved the FlaggedRevs class to its own file
* Removed $wgFlaggedArticle, store an instance inside the Article object instead. Also store a reference in the Title object, since some hooks only have a Title available. 
* Modified all hooks which were previously calling $wgFlaggedArticle directly to go via an instance loader function.
* Merged hook functions for ArticleViewHeader and DiffViewHeader
* Changed the way FlaggedRevs sets the right image version in ImagePage, to avoid a function call on startup
* Some coding style changes, such as consistent variable case, consistent indenting style, meaningful variable names, etc.
* Fixed typo in updateAutoPromote.php
* Removed the $wgFlaggedRevsVisible feature, this doesn't seem to be in keeping with our mission so I couldn't see the point in spending a lot of time fixing its bugs. Revert if necessary.
* Use Xml::encodeJsVar() to transfer data from PHP to JS, don't DIY
* Use OutputPage::addHeadItem() instead of an infinite-lifetime variable to ensure that only one copy of the header item is added. OutputPage objects may come and go.
2008-05-23 09:03:49 +00:00
Brion Vibber
554ff3f6a6 Don't assume the file repository will always return an object when checking for dupes 2008-05-21 22:36:53 +00:00
Aaron Schulz
d4c4ed8bfe Minor comment tweak 2008-05-21 22:28:21 +00:00
Aaron Schulz
bc9a62d33e Logic errors 2008-05-21 22:20:07 +00:00
Aaron Schulz
2f01b8eee6 *Respect displayImg
*Add getDisplayedFile()
2008-05-21 21:33:58 +00:00
Aaron Schulz
40589a98d7 Cleanup for displaying old versions 2008-05-21 21:23:04 +00:00
Aaron Schulz
0a1bebd190 Backwards 2008-05-21 06:23:18 +00:00
Brion Vibber
03bfe91ec4 * (bug 14199) Fix deletion form for image redirect pages
Image deletion was popping up the special image deletion form for the target image, which isn't friendly for redirects. :)
Now checking for redirect state as well as non-localness and non-existence, and pop up the regular page delete form for this.
2008-05-20 22:09:30 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Aaron Schulz
829b50956b * Use lazy initialization with loadFile()
* Add $current/$time to field list
* Fix some ugly coding style
2008-05-20 03:26:59 +00:00
Aaron Schulz
40ef91f329 Tweak $time default 2008-05-20 03:15:07 +00:00
Aaron Schulz
c651692075 Stabilize image description links 2008-05-19 18:55:48 +00:00
Aaron Schulz
a1f9401982 *Remove extra space
*Make revisiondelete links more compact
*Make user links clearer
2008-05-19 15:21:29 +00:00
Aaron Schulz
99c13c58da Make space breakable 2008-05-19 02:34:42 +00:00
Aaron Schulz
4bb299cbce *Add ImagePageFileHistoryLine hook
*Tweak hook doc order
*Mark flagged file versions in hist
*Remove $dbr field
*Tweak file histories to be more compact
2008-05-17 00:08:31 +00:00
Bryan Tong Minh
fe0f192c67 Do some refactoring on ImagePage. Shuffled the links section; Use Title::getRedirectsHere; Move duplicate detection to its own function. 2008-05-15 19:17:21 +00:00
Brion Vibber
d94cc4f01b Revert r34849 -- please stop randomly changing formatted messages into plaintext, especially without checking usage. 2008-05-15 18:38:39 +00:00
Raimond Spekking
5487b415f0 Use headings per section, improves navigation by screenreaders too. 2008-05-15 07:47:44 +00:00
Raimond Spekking
04c714091d Add a few CSS classes for styling purposes 2008-05-15 07:16:22 +00:00
Bryan Tong Minh
b60e6666e9 * Create ForeignDBFile objects from ForeignDBRepo::findBySha1
* Add foreign duplicates to ImagePage
2008-05-14 17:29:38 +00:00
Bryan Tong Minh
5510874e98 * Introduce LocalFile::selectFields similarly to Revision::SelectFields
* Introduce FileRepo::findBySha1
* Show duplicates on ImagePage
2008-05-14 15:11:48 +00:00
Bryan Tong Minh
09f0385485 Add comments and explicit check for NS_IMAGE. 2008-05-14 11:52:59 +00:00
Bryan Tong Minh
3c9536652a Put code to view redirect page in new method Article::viewRedirect in order to allow displaying redirects on foreign file repos. 2008-05-11 19:49:08 +00:00
Bryan Tong Minh
bbfcb113c3 Don't call wfFindFile twice when it's not necessary. 2008-05-10 14:19:25 +00:00
Niklas Laxström
14db06a001 * Use Xml:: and so 2008-05-10 11:56:02 +00:00
Niklas Laxström
bc335d7e0a * Use addScriptFile 2008-05-10 11:21:16 +00:00
Bryan Tong Minh
ddf879fccf (bug 13943) Fix image redirect behaviour on image pages:
* Confused redirect source with target
* Don't check for article existence if the target is a foreign image page
2008-05-10 11:12:53 +00:00
Alexandre Emsenhuber
1288520538 E_STRICT 2008-05-09 19:48:32 +00:00
Brion Vibber
c216717f1d Wikify some image messages:
* linkstoimage
* nolinkstoimage
* redirectstofile

Two of these were previously raw-HTML paragraphs, and had div classes stuck on them on eg English Wikipedia.

r34507 changed them into plaintext, breaking them.

Since image pages are already swathed with little wiki bits (meta table, other various bits), shouldn't be any harm in making these properly flexible wiki messages.
2008-05-09 18:40:52 +00:00
Bryan Tong Minh
66dcc672ad * Show a link to [[Special:Whatlinkshere]] in case there are more imagelinks on ImagePage
* Cleanup ImagePage code
2008-05-09 11:31:00 +00:00
Bryan Tong Minh
ec1f42a1e9 * Use getters where appropriate
* Fix following foreign file redirects again
2008-05-09 10:42:49 +00:00
Bryan Tong Minh
8f3d999186 Show pages that redirect to this image on ImagePage 2008-05-08 21:53:39 +00:00
Bryan Tong Minh
7648748fed So actually Article::followRedirect is used instead of Article::getRedirectTarget. Override this in ImagePage to make foreign image redirects work on image pages. 2008-05-08 21:25:12 +00:00
Bryan Tong Minh
3611f529a8 * Move image page redirect checking to ImagePage. Should now also work on foreign repos.
* Changed File::getRedirected to return a DBkey instead of a formatted text
2008-05-08 20:55:13 +00:00
Brion Vibber
cdc7e22de9 Revert r34267, r34268, r34269, r34270 for now.
I don't like the UI chhanges here; the file usage links simply disappear from their current location with no warning or explanation, while the in-page TOC at the top suddenly starts linking to a different page, totally unexpectedly.
2008-05-05 22:14:55 +00:00
Victor Vasiliev
6ca12e3eed Fix XHTML per ialex 2008-05-05 19:56:34 +00:00
Victor Vasiliev
06ad0d2551 Show image links on Special:WhatLinksHere:
* It has paging
* It handles redirects
2008-05-05 19:47:43 +00:00
Victor Vasiliev
c6e6dd0764 Refactor ImagePage::checkSharedConflict() 2008-05-01 22:16:23 +00:00
Victor Vasiliev
cda44a6cdd * (bug 889) Improve conflict-handling between shared upload repository (commons) and local one 2008-04-28 16:28:07 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00