dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add a continuation button to ApiSandbox"
[lhc/web/wiklou.git]
/
includes
/
changes
/
ChangesFeed.php
diff --git
a/includes/changes/ChangesFeed.php
b/includes/changes/ChangesFeed.php
index
dc58835
..
15a00c7
100644
(file)
--- a/
includes/changes/ChangesFeed.php
+++ b/
includes/changes/ChangesFeed.php
@@
-164,7
+164,7
@@
class ChangesFeed {
/**
* Generate the feed items given a row from the database, printing the feed.
/**
* Generate the feed items given a row from the database, printing the feed.
- * @param object $rows
DatabaseB
ase resource with recentchanges rows
+ * @param object $rows
IDatab
ase resource with recentchanges rows
* @param ChannelFeed $feed
*/
public static function generateFeed( $rows, &$feed ) {
* @param ChannelFeed $feed
*/
public static function generateFeed( $rows, &$feed ) {
@@
-178,14
+178,14
@@
class ChangesFeed {
/**
* Generate the feed items given a row from the database.
/**
* Generate the feed items given a row from the database.
- * @param object $rows
DatabaseB
ase resource with recentchanges rows
+ * @param object $rows
IDatab
ase resource with recentchanges rows
* @return array
*/
public static function buildItems( $rows ) {
* @return array
*/
public static function buildItems( $rows ) {
- $items =
array()
;
+ $items =
[]
;
# Merge adjacent edits by one user
# Merge adjacent edits by one user
- $sorted =
array()
;
+ $sorted =
[]
;
$n = 0;
foreach ( $rows as $obj ) {
if ( $obj->rc_type == RC_EXTERNAL ) {
$n = 0;
foreach ( $rows as $obj ) {
if ( $obj->rc_type == RC_EXTERNAL ) {
@@
-216,10
+216,10
@@
class ChangesFeed {
}
if ( $obj->rc_this_oldid ) {
}
if ( $obj->rc_this_oldid ) {
- $url = $title->getFullURL(
array(
+ $url = $title->getFullURL(
[
'diff' => $obj->rc_this_oldid,
'oldid' => $obj->rc_last_oldid,
'diff' => $obj->rc_this_oldid,
'oldid' => $obj->rc_last_oldid,
-
)
);
+
]
);
} else {
// log entry or something like that.
$url = $title->getFullURL();
} else {
// log entry or something like that.
$url = $title->getFullURL();