Bsitu has uploaded a new change for review.
https://gerrit.wikimedia.org/r/102790
Change subject: Define icon patch as closure
......................................................................
Define icon patch as closure
Change-Id: I193bc30ffca6f57b1a03e1c1cebe09897e0794ec
---
M includes/Notifications/Controller.php
1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/90/102790/1
diff --git a/includes/Notifications/Controller.php
b/includes/Notifications/Controller.php
index e315800..59e19ea 100644
--- a/includes/Notifications/Controller.php
+++ b/includes/Notifications/Controller.php
@@ -16,7 +16,7 @@
* Set up Echo notification for Flow extension
*/
public function setup() {
- global $wgHooks, $wgLang,
+ global $wgHooks,
$wgEchoNotifications, $wgEchoNotificationIcons,
$wgEchoNotificationCategories;
$wgHooks['EchoGetDefaultNotifiedUsers'][] =
'Flow\NotificationController::getDefaultNotifiedUsers';
@@ -29,7 +29,11 @@
$wgEchoNotificationIcons['flow-discussion'] = array(
// Possible images:
// Talk-ltr.png, Talk-rtl.png
- 'path' => 'Flow/modules/base/images/Talk-' +
$wgLang->getDir() + '.png',
+ 'path' => function() {
+ global $wgLang;
+ return 'Flow/modules/base/images/Talk-' .
$wgLang->getDir() . '.png';
+
+ }
);
$wgEchoNotificationCategories['flow-discussion'] = array(
--
To view, visit https://gerrit.wikimedia.org/r/102790
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I193bc30ffca6f57b1a03e1c1cebe09897e0794ec
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