From accb9ccf7fbc8089f2abe72e1c72269dbf43db15 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 15 Jan 2010 23:14:39 +0100 Subject: [PATCH] Make it work with both, checkouts and releases. --- horde/po/translation.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/horde/po/translation.php b/horde/po/translation.php index d490a1216..37ab05ca5 100755 --- a/horde/po/translation.php +++ b/horde/po/translation.php @@ -218,10 +218,8 @@ function get_languages($dir) function search_applications() { $dirs = array(); - $horde = false; - if (is_dir(BASE . DS . 'po')) { - $dirs[] = BASE; - $horde = true; + if (is_dir(HORDE_BASE . DS . 'po')) { + $dirs[] = HORDE_BASE; } $dh = opendir(BASE); if ($dh) { @@ -1488,7 +1486,11 @@ if (!$debug) { ini_set('error_reporting', false); } if (!defined('BASE')) { - define('BASE', HORDE_BASE); + if (is_dir(HORDE_BASE . '/../.git')) { + define('BASE', HORDE_BASE . '/..'); + } else { + define('BASE', HORDE_BASE); + } } if ($options[1][0] == 'help') { usage(); -- 2.11.0