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
..
2014-11-20 13:50:40 +01:00
2014-09-04 14:00:48 +02:00
2014-11-13 15:42:25 +01:00
2014-12-29 16:27:28 +01:00
2014-09-24 10:46:35 +02:00
2014-09-05 11:40:43 +02:00