Skip to content

Commit 5609057

Browse files
authored
Merge pull request #109 from wojsmol/fix-path
fix mustache files paths
2 parents fe25c2a + 9b8288b commit 5609057

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Plugin_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected function status_single( $args ) {
198198
if ( $this->has_update( $file ) )
199199
$version .= ' (%gUpdate available%n)';
200200

201-
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( 'plugin-status.mustache', array(
201+
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( dirname( __DIR__ ) . '/templates/plugin-status.mustache', array(
202202
'slug' => Utils\get_plugin_name( $file ),
203203
'status' => $status,
204204
'version' => $version,

src/Theme_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function status_single( $args ) {
166166
if ( $this->has_update( $theme->get_stylesheet() ) )
167167
$version .= ' (%gUpdate available%n)';
168168

169-
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( 'theme-status.mustache', array(
169+
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( dirname( __DIR__ ) . '/templates/theme-status.mustache', array(
170170
'slug' => $theme->get_stylesheet(),
171171
'status' => $status,
172172
'version' => $version,

0 commit comments

Comments
 (0)