Skip to content

Commit

Permalink
version.php files were removed in H4
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz authored and mrubinsk committed Nov 15, 2013
1 parent 321c516 commit d2cc39d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions horde/bin/horde-translation
Expand Up @@ -458,15 +458,11 @@ class Horde_Translation_Script
* an invalid charset being used in this file. */
$tmp_file = $file . '.tmp.pot';

if (file_exists($this->dirs[$i] . '/lib/Application.php')) {
include_once $this->dirs[$i] . '/lib/Application.php';
$className = $this->apps[$i] . '_Application';
$appOb = new $className;
$version = $appOb->version;
} else {
include_once $this->dirs[$i] . '/lib/version.php';
$version = constant(strtoupper($this->apps[$i]) . '_VERSION');
}
include_once $this->dirs[$i] . '/lib/Application.php';
$className = $this->apps[$i] . '_Application';
$appOb = new $className;
$version = $appOb->version;

$sh = $this->xgettext
. ' --language=PHP'
. ' --from-code=iso-8859-1'
Expand Down

0 comments on commit d2cc39d

Please sign in to comment.