Skip to content

Commit

Permalink
Default values fell back to 'default' as a template.
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 30, 2024
1 parent 77dbea0 commit 4aed90b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/my-calendar-templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ function mc_draw_template( $array, $template, $type = 'list', $event = false ) {
*/
function mc_setup_template( $template, $default ) {
// allow reference by file to external template.
$template = ( 'default' === $template ) ? '' : $template;
if ( '' !== $template && mc_file_exists( $template ) ) {
$template = file_get_contents( mc_get_file( $template ) );
}
Expand Down

0 comments on commit 4aed90b

Please sign in to comment.