Просмотр исходного кода

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

Andrew Dolgov 6 лет назад
Родитель
Сommit
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;