Don't call setTextdomain() if $app is empty (throws an error)
authorChuck Hagenbuch <chuck@horde.org>
Sat, 21 Aug 2010 00:25:50 +0000 (20:25 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 21 Aug 2010 00:25:50 +0000 (20:25 -0400)
framework/Core/lib/Horde/Registry.php

index dba3cf9..6ed918c 100644 (file)
@@ -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;
     }