summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-07-12 10:27:23 -0700
committerBrion Vibber <brion@pobox.com>2010-07-12 10:27:23 -0700
commit1b3b7f9a422f6b703ec36d43e2283f91a9835f3b (patch)
treee064c5292c546e6df8eaad9609a56150f69c62c3
parent974c4df0293afe43d763b7d888c7d92b22b67c56 (diff)
Ticket 2427: fix regression in plugin i18n
-rw-r--r--lib/language.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/language.php b/lib/language.php
index 1805707ad..6840148d2 100644
--- a/lib/language.php
+++ b/lib/language.php
@@ -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;