cleanup some ancient code and fix check for $path so that it will not pass if theme_include() will not return anything. also add an empty zen.css file for the zen template

This commit is contained in:
Mario
2024-03-17 22:21:55 +01:00
parent 732dbfd6f5
commit b05845f495
4 changed files with 8 additions and 18 deletions

View File

@@ -97,14 +97,9 @@ class Theme {
*
* Provide a sane default if nothing is chosen or the specified theme does not exist.
*
* @param bool $installing (optional) default false, if true return the name of the first base theme
*
* @return string
*/
static public function url($installing = false) {
if($installing)
return self::$base_themes[0];
static public function url() {
$uid = App::$profile_uid ?: local_channel();