summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-12-02 20:13:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-12-02 20:13:33 +0100
commitbd0a77269f475236695623f20ec2fc71753ded4d (patch)
treefb9898a53c1ea702b5772cec09d02ba115079aa4 /core
parent6f4d3edb5e5bcb343012b378e22500e614c2cc38 (diff)
downloadnextcloud-server-bd0a77269f475236695623f20ec2fc71753ded4d.tar.gz
nextcloud-server-bd0a77269f475236695623f20ec2fc71753ded4d.zip
Add icon to user limit notification
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core')
-rw-r--r--core/Notification/CoreNotifier.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/Notification/CoreNotifier.php b/core/Notification/CoreNotifier.php
index dd362dac8c1..2e020161b8e 100644
--- a/core/Notification/CoreNotifier.php
+++ b/core/Notification/CoreNotifier.php
@@ -29,6 +29,7 @@ declare(strict_types=1);
namespace OC\Core\Notification;
+use OCP\IURLGenerator;
use OCP\L10N\IFactory;
use OCP\Notification\INotification;
use OCP\Notification\INotifier;
@@ -36,9 +37,12 @@ use OCP\Notification\INotifier;
class CoreNotifier implements INotifier {
/** @var IFactory */
private $l10nFactory;
+ /** @var IURLGenerator */
+ private $url;
- public function __construct(IFactory $factory) {
+ public function __construct(IFactory $factory, IURLGenerator $url) {
$this->l10nFactory = $factory;
+ $this->url = $url;
}
/**
@@ -78,6 +82,7 @@ class CoreNotifier implements INotifier {
$notification->setParsedSubject($l->t('The user limit of this instance is reached.'));
$notification->setParsedMessage($l->t('Add a subscription key to increase the user limit of this instance. For more information have a look at the Enterprise subscription page.'));
$notification->setLink('https://nextcloud.com/enterprise/order/');
+ $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/contacts.svg')));
return $notification;
}