]> git.bts.cx Git - cx.git/commitdiff
Use the correct file request call main
authorBen Sherratt <redacted>
Sun, 5 Jul 2026 11:03:16 +0000 (12:03 +0100)
committerBen Sherratt <redacted>
Sun, 5 Jul 2026 11:03:16 +0000 (12:03 +0100)
cx/lib/template.php

index 004c2abccf5b96eb9afd74a25239dc717d3a58a2..638c6008de3177ce4b07453a5d00907db1ea6ff7 100644 (file)
@@ -9,7 +9,7 @@ function cx_template_content_path($class, $path) {
 }
 
 function cx_template_has_content($class, $path) {
 }
 
 function cx_template_has_content($class, $path) {
-       return file_exists(cx_template_content_path($class, $path));
+       return is_file(cx_template_content_path($class, $path));
 }
 
 function cx_template_output_content($class, $path, $cache_age = 30 * 86400) {
 }
 
 function cx_template_output_content($class, $path, $cache_age = 30 * 86400) {