From: Chuck Hagenbuch Date: Sat, 21 Aug 2010 00:25:50 +0000 (-0400) Subject: Don't call setTextdomain() if $app is empty (throws an error) X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1622f23c9a0d7140e82a1a52ef3af9d8a5aaf6fe;p=horde.git Don't call setTextdomain() if $app is empty (throws an error) --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index dba3cf9fd..6ed918ca4 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1233,11 +1233,11 @@ class Horde_Registry $app = $this->getApp(); if ($app) { $this->_onAppSwitch($app); + $this->setTextdomain( + $app, + $this->get('fileroot', $app) . '/locale' + ); } - $this->setTextdomain( - $app, - $this->get('fileroot', $app) . '/locale' - ); return $previous; }