Skip to content

Commit 81fa7dc

Browse files
committed
Fix reference to version that's been removed
1 parent ca7f648 commit 81fa7dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.2.0-pl

application.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@
7070
use modmore\Gitify\Command\UpgradeModxCommand;
7171
use modmore\Gitify\Gitify;
7272

73-
$composerData = file_get_contents(__DIR__ . "/composer.json");
74-
$composerData = json_decode($composerData, true);
75-
$version = $composerData['version'];
73+
$version = trim(@file_get_contents(__DIR__ . '/VERSION'));
7674

7775
$application = new Gitify('Gitify', $version);
7876
$application->add(new InitCommand);

0 commit comments

Comments
 (0)