Commit graph

26 commits

Author SHA1 Message Date
Alex Monk
2fabea7eea Use wfMessage instead of deprecated wfMsg*
Or $this->msg in special pages.

Change-Id: I774a89d646615053c8424050e42ad95601f92543
2012-08-18 14:11:05 +02:00
Alexandre Emsenhuber
1082c71e9b Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Ibe7815124d6915792dcbb150d01df21d9b22b0b0
2012-05-21 21:56:39 +02:00
Reedy
2edbe14e39 Normalising return statements
Add/improve parameter documentation

Change-Id: I4c7fa319be60a47b7fcd81131458577bccb009fb
2012-04-27 16:40:14 +01:00
Sam Reed
7b25f8231f Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
2012-02-09 19:30:01 +00:00
Sam Reed
ead951a4ad Couple more pieces of wikia upstreaming 2011-08-19 23:30:12 +00:00
Brian Wolff
9a0ceb9fad (bug 29485) For rss feed of the RC, it groups consecutive edits by same user, but then links
to the diff of only one edit, instead of all of the grouped edits (but displays the combined diff directly in feed)

Also well I'm here, make it not group new page creation with subsequent edit, because that doesn't really work right.
2011-06-19 05:45:40 +00:00
Sam Reed
e514478ba5 Fix function level comments that start with /* not /** 2011-05-21 19:35:16 +00:00
Niklas Laxström
7d4f219963 Special pages don't have talk page. Fixes exception in feeds when using revision deletion feature:
Exception: MWNamespace::getTalk does not make any sense for given namespace -1
2011-05-14 12:24:45 +00:00
Alexandre Emsenhuber
983d0b0d3e Pass the url to ChangesFeed::getFeedObject() instead of grabbing it from $wgTitle
(no use of that function in extensions)
2011-02-17 19:26:38 +00:00
Platonides
537826a674 Remove $wgContLanguageCode usage in core.
sed -i 's/$wgContLanguageCode/$wgLanguageCode/g'
These are now the same, always. Per and since r15827.

$wgLanguageCode wins due to being the one set by LocalSettings.

$wgContLanguageCode definition at includes/Setup.php kept for now.
2010-09-07 22:37:55 +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
Alexandre Emsenhuber
5fea872d38 * (bug 21916) Last-Modified header is now correct when outputting cached feed 2010-04-05 16:14:58 +00:00
Alexandre Emsenhuber
a1d9ee26c2 * (bug 22918) Feed cache keys now use $wgRenderHashAppend (so that it doesn't mix between secure.wikimedia.org and normal sites)
* Modified the timestamp key to use all parameters, otherwise various entries are sharing the same timestamp key and thus some of them can be served even though they are out of date. Consider the following case:
** Two requests for feeds sharing the same timestamp key are done
** Someone edits a page (or whatever else that change the recentchanges table)
** A user request one of the two feed above, the feed is correctly re-generated and the timestamp key changed
** A request for the other feed is done, this time the timestamp is the one of the request just above and the cached version will be served (even though it should not)

Based on a patch by Bawolff.
2010-04-04 13:38:12 +00:00
Tim Starling
e185e2b9b3 * Fix for r60163: in RC/RCL, hash together all the options, not just namespace, in order to form the cache key.
* Removed Crb from the credits since none of his code remains.
* Fixed two bugs which both broke feed links on RCL: $this->mTargetTitle not initialised when setTopText() is called, and $out->setFeedAppendQuery() in setBottomText() overridden by a subsequent call to setSyndicated(). Fixed both by rearranging data flow, using memoized accessors instead of setup functions to eliminate bugs due to execution order.
* Renamed a few variables which were unclear ($feed and $feedObj).
2010-02-10 04:13:43 +00:00
Alexandre Emsenhuber
36d2910fa9 * Document a bit
* Add new doxygen group "Feed"
* Fix some doxygen warnings
2010-01-09 21:59:40 +00:00
Happy-melon
1769c444f2 Follow-up to r60163 - add new function parameters at the end of the parameter list. And update release notes. 2009-12-17 20:28:57 +00:00
Happy-melon
b4b5eeb2c6 (bug 21535) Add 'namespace' to cache key for RecentChanges RSS feed. Patch by crb, reviewed by Rowan. 2009-12-17 15:42:17 +00:00
Bryan Tong Minh
7cc194b185 (bug 19391) Fix caching for Recent ChangesFeed. Patch by Mormegil. 2009-11-12 22:13:20 +00:00
Chad Horohoe
523ce0a9b9 (bug 19394) Recent changes feed items corresponding to some log entries are broken. Patch by Mormegil 2009-08-02 03:07:07 +00:00
Aaron Schulz
3da21760df Skip feed items with deleted content entirely, fixes bug 19965 2009-07-28 10:05:14 +00:00
Chad Horohoe
51ddf4f1df Cleanup to $wgFeedClasses:
* Remove 2 unused globals
* (bug 17488) Link in toolbar to feeds should be localized (already have the feed-$format messages) Patch by Marcin Cieślak.
* Tangentially, can $wgFeedClasses be moved from Defines to DefaultSettings? Seems to make more sense in the latter.
2009-02-14 16:00:51 +00:00
Aaron Schulz
c4b92206fc * Added 'target' param to changesfeed to fix total breakage of RCL feed. They were all using the same cache so the feed for page X sometimes showed the feed for page Y.
* Removed extra constant cache key params
* Added feed comments
* Fixed tab space
2009-01-17 18:44:28 +00:00
Chad Horohoe
93dbb214d0 Remove some unused globals. 2008-11-04 02:53:47 +00:00
Aaron Schulz
8d830b928c Don't throw fatals for bogus feed types (bug 15596) 2008-09-14 12:25:53 +00:00
Chad Horohoe
b8d6dc383c A few misc. docs here and there. 2008-09-13 06:21:18 +00:00
Niklas Laxström
58f7bb30a0 Refactored SpecialRecentchanges:
* Use a class and new frameworks
* Split into functions
* Two new hooks
* Split feed related items to new classes that are autoloaded
2008-06-17 08:24:00 +00:00