]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ticket 2427: fix regression in plugin i18n
authorBrion Vibber <brion@pobox.com>
Mon, 12 Jul 2010 17:27:23 +0000 (10:27 -0700)
committerBrion Vibber <brion@pobox.com>
Mon, 12 Jul 2010 17:27:23 +0000 (10:27 -0700)
lib/language.php

index 1805707ad5549f80199b3b6fce0be67f5f0ae58f..6840148d21f52fb3795aa0128979947fa3bc6615 100644 (file)
@@ -213,16 +213,16 @@ function _mdomain($backtrace)
         $plug = strpos($path, '/plugins/');
         if ($plug === false) {
             // We're not in a plugin; return default domain.
-            return 'statusnet';
+            $final = 'statusnet';
         } else {
             $cut = $plug + 9;
             $cut2 = strpos($path, '/', $cut);
             if ($cut2) {
-                $cached[$path] = substr($path, $cut, $cut2 - $cut);
+                $final = substr($path, $cut, $cut2 - $cut);
             } else {
                 // We might be running directly from the plugins dir?
                 // If so, there's no place to store locale info.
-                return 'statusnet';
+                $final = 'statusnet';
             }
         }
         $cached[$path] = $final;