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 30
30
}
31
31
if ($page -> theme != $entry ){echo ' <option value="' ; print_r ($entry ); echo ' ">' ; echo $themeName ; echo ' </option>' ; }}}} ? >
32
32
<?php
33
- if ($page -> theme != " default" ){
33
+ if ($page -> theme != " default" and $page -> theme != " " ){
34
34
if (file_exists (base_path (' themes' ) . ' /' . $page -> theme . ' /readme.md' )){
35
35
$text = file_get_contents (base_path (' themes' ) . ' /' . $page -> theme . ' /readme.md' );
36
36
$pattern = '/ Theme Name:.* /' ;
37
37
preg_match ($pattern , $text , $matches , PREG_OFFSET_CAPTURE );
38
38
$themeName = substr ($matches [0 ][0 ],12 );}
39
39
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>' ; ? >
41
41
</select >
42
42
</div >
43
43
<div class =" col" >
You can’t perform that action at this time.
0 commit comments