Bsitu has uploaded a new change for review.
https://gerrit.wikimedia.org/r/113070
Change subject: Associative array should not be accessed by numeric index
......................................................................
Associative array should not be accessed by numeric index
Change-Id: Ibe1997dde5b6488e75e17e9a90d00cc734f7c778
---
M includes/Contributions/Formatter.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/70/113070/1
diff --git a/includes/Contributions/Formatter.php
b/includes/Contributions/Formatter.php
index a466945..595a79a 100644
--- a/includes/Contributions/Formatter.php
+++ b/includes/Contributions/Formatter.php
@@ -44,7 +44,7 @@
// Format timestamp: add link
$formattedTime = $dateFormats['timeAndDate'];
if ( $links ) {
- list( $url, $text ) = $links[count( $links ) - 1];
+ list( $url, $text ) = end( $links );
$formattedTime = Html::element(
'a',
array(
--
To view, visit https://gerrit.wikimedia.org/r/113070
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe1997dde5b6488e75e17e9a90d00cc734f7c778
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits