aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/notification/manager.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-08-21 00:44:27 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-08-21 00:44:27 +0200
commitb2701f00e9e882c301625861df9c859c6c620375 (patch)
tree624354dfa7de81b468313b378f5bc5edaf4beee8 /phpBB/phpbb/notification/manager.php
parent19aecaf7c7d2e4532f9b79a5eb1bc32e8c6fae45 (diff)
parent31aac66f5aca218254a6ff199c21a282bc6059bc (diff)
downloadforums-b2701f00e9e882c301625861df9c859c6c620375.tar
forums-b2701f00e9e882c301625861df9c859c6c620375.tar.gz
forums-b2701f00e9e882c301625861df9c859c6c620375.tar.bz2
forums-b2701f00e9e882c301625861df9c859c6c620375.tar.xz
forums-b2701f00e9e882c301625861df9c859c6c620375.zip
Merge branch 'develop-ascraeus' into develop
Diffstat (limited to 'phpBB/phpbb/notification/manager.php')
-rw-r--r--phpBB/phpbb/notification/manager.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php
index 5e4bab1530..81b450ebbd 100644
--- a/phpBB/phpbb/notification/manager.php
+++ b/phpBB/phpbb/notification/manager.php
@@ -570,7 +570,7 @@ class manager
{
$subscription_methods[$method_name] = array(
'id' => $method->get_type(),
- 'lang' => 'NOTIFICATION_METHOD_' . strtoupper($method->get_type()),
+ 'lang' => str_replace('.', '_', strtoupper($method->get_type())),
);
}
}
@@ -851,8 +851,6 @@ class manager
*/
public function get_item_type_class($notification_type_name, $data = array())
{
- $notification_type_name = (strpos($notification_type_name, 'notification.type.') === 0) ? $notification_type_name : 'notification.type.' . $notification_type_name;
-
$item = $this->load_object($notification_type_name);
$item->set_initial_data($data);
@@ -865,8 +863,6 @@ class manager
*/
public function get_method_class($method_name)
{
- $method_name = (strpos($method_name, 'notification.method.') === 0) ? $method_name : 'notification.method.' . $method_name;
-
return $this->load_object($method_name);
}