https://bugzilla.wikimedia.org/show_bug.cgi?id=40120
Web browser: ---
Bug #: 40120
Summary: Provide a new API query module to retrieve a list of
newly uploaded files
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Keywords: easy, patch
Severity: enhancement
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 11093
--> https://bugzilla.wikimedia.org/attachment.cgi?id=11093
ApiQueryNewFiles class which provides this functionality (created under MW1.19)
A new API query module which provides the functionality of Special:NewFiles
would be extremely useful for scripts which could provide an interface to
easily select a recently upload file for inserting in the page, specially if
it's also able to filter by the user who uploaded them.
And maybe create custom atom/rss feeds for recent uploaded files.
There's no functionality for this in the current API modules:
* list=allimages lists images in alphabetically order.
* list=logevents&leaction=upload gives not-usable results when files are
deleted or moved
I've taken the effort to create the API Class that provides this functionality
by myself. I'm sorry for not being able to provide it in a "patch" format, but
it should be easy to integrate it in the MediaWiki code.
Including it as an extension only required me those 2 lines (apart from copying
the attached file to the current installation directory):
$wgAutoloadClasses['ApiQueryNewFiles'] = dirname( __FILE__ ) .
'/ApiQueryNewFiles.php';
$wgAPIListModules['newfiles'] = 'ApiQueryNewFiles';
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l