From 1622f23c9a0d7140e82a1a52ef3af9d8a5aaf6fe Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 20 Aug 2010 20:25:50 -0400 Subject: [PATCH] Don't call setTextdomain() if $app is empty (throws an error) --- framework/Core/lib/Horde/Registry.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.11.0