icingaweb2/library/Icinga/Web
Eric Lippmann 50bbf77d0c Fix module domain detection in Form::getTranslationDomain()
The usage of preg_replace had two errors:
1) The regular expression was wrong
2) $matches[0] always contains the full matched string, not the first parenthesized subpattern

The correct version of preg_replace would've been:

if (preg_match('/^Icinga\\\\Module\\\\([A-Za-z]+)\\\\/', get_called_class(), $matches) === 1) {
    return strtolower($matches[1]);
}

But since there's no benefit of using a regular expression here except less speed, I replaced it
with using explode.

refs #7551
2014-12-30 10:08:33 +01:00
..
Controller Fix some obsolete or wrong docstrings 2014-12-29 16:27:28 +01:00
Form Remove the Help decorator 2014-11-20 13:50:40 +01:00
Hook GrapherHook: Rework hook 2014-09-04 14:00:48 +02:00
Menu Do not focus logout menu item after a recurring login 2014-12-29 16:20:05 +01:00
Paginator
Session Only check the session save path is writable if the session handler is 'files' 2014-12-29 09:37:47 +01:00
View helpers/icon: support webfont shortcuts 2014-11-13 15:17:36 +01:00
Widget Use neutral default color in perfdata piecharts 2014-12-23 16:12:25 +01:00
Controller.php Web\Controller: initial commit 2014-11-13 15:42:25 +01:00
FileCache.php Web\FileCache: initial implementation 2014-09-02 16:22:48 +02:00
Form.php Fix module domain detection in Form::getTranslationDomain() 2014-12-30 10:08:33 +01:00
Hook.php Move Logger to the Application namespace 2014-10-31 10:27:17 +01:00
JavaScript.php Use JShrink from the include path 2014-11-14 11:55:06 +01:00
LessCompiler.php Use lessphp from the include path 2014-11-14 13:27:02 +01:00
Menu.php Fix some obsolete or wrong docstrings 2014-12-29 16:27:28 +01:00
MenuRenderer.php Web\MenuRenderer: support webfont icons 2014-11-13 15:21:49 +01:00
Notification.php Merge branch 'master' into feature/setup-wizard-7163 2014-11-04 14:22:53 +01:00
Request.php Web\Request: the request should know the URL 2014-11-15 22:40:29 +01:00
Response.php Write session on response 2014-09-24 10:46:35 +02:00
Session.php
StyleSheet.php css: allow to override vendor styles 2014-11-19 10:33:57 +01:00
Url.php Web\Url: document with() method 2014-09-05 11:40:43 +02:00
UrlParams.php Web\UrlParams: allow to merge single value 2014-09-05 13:35:51 +02:00
View.php Implement plural and context based translation functionality 2014-09-16 15:19:23 +02:00
ViewStream.php
Widget.php
Window.php
Wizard.php Remove $request parameter from Form::onSuccess and Form::onRequest 2014-11-14 14:59:29 +01:00