File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 3
3
namespace Hestia \WebApp \Installers \NodeBB ;
4
4
use Hestia \WebApp \Installers \BaseSetup as BaseSetup ;
5
5
require_once ( '/usr/local/hestia/web/pluginable.php ' );
6
- $ nodebb_version = file_get_contents ( '/usr/local/hestia/plugins/nodebb/nodebb_version.sh ' );
7
- $ nodebb_version = str_replace ( 'nodebb_version= ' , "" , $ nodebb_version );
8
- $ nodebb_version = trim ( $ nodebb_version , '" ' );
9
6
10
7
class NodeBBSetup extends BaseSetup {
11
8
protected $ appInfo = [
12
9
"name " => "NodeBB " ,
13
10
"group " => "forum " ,
14
11
"enabled " => true ,
15
- "version " => $ nodebb_version ,
12
+ "version " => "" ,
16
13
"thumbnail " => "nodebb-thumb.png " ,
17
14
];
18
15
@@ -35,6 +32,14 @@ class NodeBBSetup extends BaseSetup {
35
32
],
36
33
];
37
34
35
+ public function __construct ($ domain , $ appcontext ) {
36
+ $ v = file_get_contents ( '/usr/local/hestia/plugins/nodebb/nodebb_version.sh ' );
37
+ $ v = str_replace ( 'nodebb_version= ' , "" , $ v );
38
+ $ v = trim ( $ v , '" ' );
39
+ $ this ->appInfo ['version ' ] = $ v ;
40
+ parent ::__construct ($ domain , $ appcontext );
41
+ }
42
+
38
43
public function install (array $ options = null ) {
39
44
global $ hcpp ;
40
45
$ parse = explode ( '/ ' , $ this ->getDocRoot () );
You can’t perform that action at this time.
0 commit comments