Преглед на файлове

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

Andrew Dolgov преди 6 години
родител
ревизия
bfebf57c5f
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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;