From: Jan Schneider Date: Fri, 15 Jan 2010 22:14:39 +0000 (+0100) Subject: Make it work with both, checkouts and releases. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=accb9ccf7fbc8089f2abe72e1c72269dbf43db15;p=horde.git Make it work with both, checkouts and releases. --- 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();