Explorar o código

get_theme_path: fallback to css/default.css if default theme is selected

Andrew Dolgov %!s(int64=6) %!d(string=hai) anos
pai
achega
bfebf57c5f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      include/functions.php

+ 3 - 0
include/functions.php

@@ -2425,6 +2425,9 @@
 	}
 
 	function get_theme_path($theme) {
+		if ($theme == "default.php")
+			return "css/default.css";
+
 		$check = "themes/$theme";
 		if (file_exists($check)) return $check;