Skip to content

Commit

Permalink
[jan] Fix detecting locale directories of namespaced libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Feb 27, 2017
1 parent 40a2ee4 commit 64e6c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion framework/Translation/lib/Horde/Translation/Autodetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ protected static function _getSearchDirectories()
$className = get_called_class();
$class = new ReflectionClass($className);
$basedir = dirname($class->getFilename());
$depth = substr_count($className, '_');
$depth = substr_count($className, '\\')
?: substr_count($className, '_');

return array(
/* Composer */
Expand Down
4 changes: 2 additions & 2 deletions framework/Translation/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Fix detecting locale directories of namespaced libraries.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -390,7 +390,7 @@
<date>2016-02-02</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Fix detecting locale directories of namespaced libraries.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 64e6c5e

Please sign in to comment.