From b12fb53ee2e1597f0246a961dc5ff29f8af04d47 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 19 May 2016 12:07:58 +0200 Subject: work work work work work --- inc/dashboard.inc.php | 2 +- inc/dictionary.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/dashboard.inc.php b/inc/dashboard.inc.php index 13d713bb..e8c20dee 100644 --- a/inc/dashboard.inc.php +++ b/inc/dashboard.inc.php @@ -63,7 +63,7 @@ class Dashboard if ($category === false) { return ''; } - if (!preg_match('/^(\w+)\.(\w+)$/', $category, $out)) { + if (!preg_match('/^(\w+)\.(.*)$/', $category, $out)) { error_log('Requested category icon for invalid category "' . $category . '"'); return ''; } diff --git a/inc/dictionary.inc.php b/inc/dictionary.inc.php index 5679c52d..f5886bda 100644 --- a/inc/dictionary.inc.php +++ b/inc/dictionary.inc.php @@ -104,7 +104,7 @@ class Dictionary if ($category === false) { return 'No Category'; } - if (!preg_match('/^(\w+)\.(\w+)$/', $category, $out)) { + if (!preg_match('/^(\w+)\.(.*)$/', $category, $out)) { return 'Invalid Category ID format: ' . $category; } $string = self::translateFileModule($out[1], 'categories', $out[2]); -- cgit v1.2.3-55-g7522