*/
class Theme
{
+ const FALLBACK = 'neo';
+
var $name = null;
var $dir = null;
var $path = null;
if (file_exists($fulldir) && is_dir($fulldir)) {
$this->dir = $fulldir;
$this->path = $this->relativeThemePath('theme', 'theme', $name);
+ return;
}
+
+ // Ruh roh. Fall back to default, then.
+
+ common_log(LOG_WARN, sprintf("Unable to find theme '%s', falling back to default theme '%s'",
+ $name,
+ Theme::FALLBACK));
+
+ $this->name = Theme::FALLBACK;
+ $this->dir = $instroot.'/'.Theme::FALLBACK;
+ $this->path = $this->relativeThemePath('theme', 'theme', Theme::FALLBACK);
+
}
/**