From 1b3b7f9a422f6b703ec36d43e2283f91a9835f3b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 12 Jul 2010 10:27:23 -0700 Subject: [PATCH] Ticket 2427: fix regression in plugin i18n --- lib/language.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/language.php b/lib/language.php index 1805707ad5..6840148d21 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;