icingaweb2/library/Icinga
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
..
Application Load setup module when necessary when bootstrapping the CLI 2014-12-30 09:27:37 +01:00
Authentication Check LDAP username in case insensitive way 2014-12-10 16:00:39 +01:00
Chart Display inline pie-charts also in views exported to PDF 2014-12-15 13:55:20 +01:00
Cli cli: Fix the path to the clicommands 2014-11-14 16:01:40 +01:00
Data Fix that DbQuery::renderFilter produces invalid filters 2014-11-20 11:58:22 +01:00
Exception Show the user a senseful error message in case enabledModules is missing 2014-11-18 16:22:41 +01:00
File Merge branch 'master' into feature/packages-4075 2014-12-18 14:02:17 +01:00
Protocol Merge branch 'master' into bugfix/drop-zend-config-7147 2014-11-18 13:21:18 +01:00
Test Tests: Fix ApplicationBootstrap mock 2014-11-18 16:06:39 +01:00
User Preferences: Use the lowercase username 2014-11-19 15:42:33 +01:00
Util Add module-aware Form::translate and Form::translatePlural 2014-12-19 11:29:24 +01:00
Web Fix module domain detection in Form::getTranslationDomain() 2014-12-30 10:08:33 +01:00
User.php Avoid type warning when using array_combine on empty arrays 2014-09-30 15:54:38 +02:00