Skip to content

Commit

Permalink
Update DevThemeActiveCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin authored Dec 28, 2020
1 parent f64fce9 commit 402a6a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/GetPageSpeed/DevThemeActiveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
$sql = sprintf('SELECT DISTINCT theme_path FROM `%s` LEFT JOIN `%s` ON `value` = `theme_id` WHERE `path`=\'design/theme/theme_id\'',
$themeTableName, $configTableName);
$res = $connection->fetchCol($sql);

if (!count($res)) {
$res[] = 'Magento/luma';
}

if (!$input->getOption('format')) {
$out = array();
Expand Down

0 comments on commit 402a6a8

Please # to comment.