Skip to content

Commit 1287fae

Browse files
committed
Update theme.blade.php
1 parent b8259b2 commit 1287fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/studio/theme.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030
}
3131
if($page->theme != $entry){echo '<option value="'; print_r($entry); echo '">'; echo $themeName; echo '</option>'; }}}} ?>
3232
<?php
33-
if($page->theme != "default"){
33+
if($page->theme != "default" and $page->theme != ""){
3434
if(file_exists(base_path('themes') . '/' . $page->theme . '/readme.md')){
3535
$text = file_get_contents(base_path('themes') . '/' . $page->theme . '/readme.md');
3636
$pattern = '/Theme Name:.*/';
3737
preg_match($pattern, $text, $matches, PREG_OFFSET_CAPTURE);
3838
$themeName = substr($matches[0][0],12);}
3939
echo '<option value="'.$page->theme.'" selected>'.$themeName.'</option>';} ?>
40-
<?php echo '<option value="default"'; if($page->theme == "default"){echo 'selected';} echo '>Default</option>'; ?>
40+
<?php echo '<option value="default"'; if($page->theme == "default" or $page->theme == ""){echo 'selected';} echo '>Default</option>'; ?>
4141
</select>
4242
</div>
4343
<div class="col">

0 commit comments

Comments
 (0)