Skip to content

Commit

Permalink
remove outdated filename check
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Austin committed Oct 31, 2013
1 parent c66a01d commit 77bff3a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -704,12 +704,10 @@ function cfct_choose_single_template_meta($dir, $files, $filter) {
}
}
// check key matches only
if (!$filename) {
foreach ($meta as $k => $v) {
$file = cfct_filename_filter('meta-'.$k.'.php', $filter);
if (in_array($file, $meta_files)) {
return $file;
}
foreach ($meta as $k => $v) {
$file = cfct_filename_filter('meta-'.$k.'.php', $filter);
if (in_array($file, $meta_files)) {
return $file;
}
}
}
Expand Down

0 comments on commit 77bff3a

Please sign in to comment.