mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Minor
This commit is contained in:
parent
8e69039c0d
commit
7ca6602c08
@ -308,12 +308,11 @@ class Theme
|
|||||||
public function getPreviewImageUrl()
|
public function getPreviewImageUrl()
|
||||||
{
|
{
|
||||||
$previewPath = '/assets/images/theme-preview.png';
|
$previewPath = '/assets/images/theme-preview.png';
|
||||||
$path = $this->getPath().$previewPath;
|
if (File::exists($this->getPath().$previewPath)) {
|
||||||
if (!File::exists($path)) {
|
return URL::asset('themes/'.$this->getDirName().$previewPath);
|
||||||
return URL::asset('modules/cms/assets/images/default-theme-preview.png');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return URL::asset('themes/'.$this->getDirName().$previewPath);
|
return URL::asset('modules/cms/assets/images/default-theme-preview.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user