summaryrefslogtreecommitdiffstats
path: root/inc/message.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2016-05-04 18:27:28 +0200
committerSimon Rettberg2016-05-04 18:27:28 +0200
commit80424b29e00609bf837119fa810b5afdadf2b4e9 (patch)
treee59c49265aeb219c4137bdf21e71262201345b99 /inc/message.inc.php
parentWIP (diff)
downloadslx-admin-80424b29e00609bf837119fa810b5afdadf2b4e9.tar.gz
slx-admin-80424b29e00609bf837119fa810b5afdadf2b4e9.tar.xz
slx-admin-80424b29e00609bf837119fa810b5afdadf2b4e9.zip
Work on translations: templates and messages work
Diffstat (limited to 'inc/message.inc.php')
-rw-r--r--inc/message.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/message.inc.php b/inc/message.inc.php
index 96fb94c5..d6a62f4e 100644
--- a/inc/message.inc.php
+++ b/inc/message.inc.php
@@ -37,6 +37,9 @@ class Message
*/
private static function add($type, $id, $params)
{
+ if (strstr($id, '.') === false) {
+ $id = Page::getModule()->getIdentifier() . '.' . $id;
+ }
self::$list[] = array(
'type' => $type,
'id' => $id,