Alexandre Emsenhuber
15e9fcca01
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: Iaebd4e253ff3b35b568e9b394231a5691445ac95
2012-05-14 19:59:58 +02:00
Sam Reed
560ebfb721
Fix possibly undefined variables
...
Move $db further up
Return something on all paths
2012-02-18 01:07:42 +00:00
Sam Reed
76246b9bf5
More return documentation
2012-02-09 21:33:27 +00:00
Aaron Schulz
4ccf5a9a90
r96546: Made FeedUtils::formatDiff() use the new LogFormatter class rather than a broken LogPage::actionText() call (the <summary> tag only had the log action name in it). This change means that log actions in feeds now have the user name in them, unlike 1.18. Also, broke a long code line.
2012-02-07 23:57:33 +00:00
Platonides
9bf2a06c7d
Follow-up r106189. The $wgUser are no longer needed.
2011-12-15 21:53:02 +00:00
Siebrand Mazeland
d093043131
Remove users of deprecated User::getSkin().
2011-12-14 13:01:27 +00:00
Tim Starling
82ff85e67c
Fix for r102295 per CR r105654: don't double-escape the URL
2011-12-09 09:32:15 +00:00
Tim Starling
b36df6ecc6
Fixes for r102295:
...
* Rename getDiffText to getDiffLink since that's what it actually gets. Fix associated variable names.
* Use Html::element() not Html::rawElement() when escaping is desired.
2011-12-09 05:54:26 +00:00
Tim Starling
6d626866de
Fix comment from r102287
2011-12-09 05:37:57 +00:00
Antoine Musso
92d98413ce
bug 29110 - $wgFeedDiffCutoff doesn't affect new pages
...
Patch by John Du Hart. Rewritten to avoid code duplication, duplicate
code is now in a helper function.
2011-11-07 16:12:37 +00:00
Antoine Musso
c20f7be60f
early returns to avoid long code in if / else
...
Instead of enclosing a lot of code in a if() {} block. I reverted the logic
to exit early. That makes code a bit easier to read.
Logic was:
if( $title->getNamespace() >= 0 && !$accErrors && $newid ) {
// LOT OF CODE
}
return;
Now:
if( $title->getNamespace() < 0 || $accErrors || !$newid ) {
return;
}
// LOT OF CODE
2011-11-07 14:57:55 +00:00
Alexandre Emsenhuber
ec9b551ca9
* Added HttpError exception as replacement for wfHttpError(); changed alls core calls to it except AjaxDispatcher.php
...
* Changed FeedUtils' call to it to be similar than feeds are completely disabled
* Use local context instead of global variables in Special:Userlogout
2011-09-16 18:50:13 +00:00
Sam Reed
ad39f2da86
Trim trailing whitespace
...
Add/tweak/update documentation
Simplify some boolean returns
2011-09-04 21:40:17 +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
Alexandre Emsenhuber
dc81854161
Avoid PHP notice about undefined variable $diffText if $wgFeedDiffCutoff is 0
2010-04-04 12:01:42 +00:00
Alexandre Emsenhuber
92421b974b
* (bug 19393) Feeds now format dates in user language rather than content language
...
There's no more need to do this with content language since the language code was added to the cache key in r58978.
2010-04-02 15:46:41 +00:00
Alexandre Emsenhuber
6a9bb1f6d2
__FUNCTION__ -> __METHOD__
2010-01-10 18:36:26 +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
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
Purodha B Blissenbach
00a913cecd
Message 'revisionasof' - 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 20:45:46 +00:00
Chad Horohoe
2664b438f1
Remove some unused $wgOut's.
2009-04-07 15:56:26 +00:00
Chad Horohoe
1a0017a76f
(bug 14868) Setting $wgFeedDiffCutoff to 0 now stops generation of the diff entirely, not just display of it. No point in wasting time doing the former if you don't want the latter :)
2008-08-08 13:48:16 +00:00
Brion Vibber
2e2141866b
* (bug 14646) Fix some double-escaping of HTML in feed output
...
Log entry action text was being double-escaped by running HTML through the comment parser.
Log action text is now output as straight HTML.
The link for long diffs was also coming out wrong on English Wikipedia due to overloading of messages.
Switched from 'differenes' (which is a label text which had gotten turned into an HTML link there) to 'showdiff', which is a plaintext button label. (Might consider making it a separate message which is a little more descriptive.)
2008-07-06 20:19:04 +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