File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ class Ghost {
17
17
public function __construct () {
18
18
global $ hcpp ;
19
19
$ hcpp ->ghost = $ this ;
20
- $ hcpp ->ghost ->version = basename ( readlink ('/opt/ghost/current ' ) );
21
20
$ hcpp ->add_action ( 'hcpp_invoke_plugin ' , [ $ this , 'setup ' ] );
22
21
$ hcpp ->add_action ( 'hcpp_render_body ' , [ $ this , 'hcpp_render_body ' ] );
23
22
}
@@ -182,7 +181,8 @@ public function hcpp_render_body( $args ) {
182
181
183
182
// Fill out version on app listing page
184
183
if ( $ args ['page ' ] == 'list_webapps ' ) {
185
- $ args ['content ' ] = str_replace ( '%ghost_version% ' , $ hcpp ->ghost ->version , $ args ['content ' ] );
184
+ $ version = shell_exec ( 'basename $(readlink /opt/ghost/current) ' );
185
+ $ args ['content ' ] = str_replace ( '%ghost_version% ' , $ version , $ args ['content ' ] );
186
186
return $ args ;
187
187
}
188
188
You can’t perform that action at this time.
0 commit comments