Minor changes
This commit is contained in:
parent
bba42c36e9
commit
32c7891942
|
|
@ -9,6 +9,8 @@ use October\Rain\Halcyon\Datasource\DatasourceInterface;
|
|||
|
||||
/**
|
||||
* Datasource that loads from other data sources automatically
|
||||
*
|
||||
* @Todo: Need to prevent softdeleted DB records from appearing, even if they exist in the filesystem
|
||||
*/
|
||||
class AutoDatasource extends Datasource implements DatasourceInterface
|
||||
{
|
||||
|
|
|
|||
|
|
@ -519,7 +519,7 @@ class Theme
|
|||
$enableDbLayer = !Config::get('app.debug');
|
||||
}
|
||||
|
||||
if ($enableDbLayer) {
|
||||
if ($enableDbLayer && App::hasDatabase()) {
|
||||
$datasource = new AutoDatasource([
|
||||
new DbDatasource($this->dirName, 'cms_theme_contents'),
|
||||
new FileDatasource($this->getPath(), App::make('files')),
|
||||
|
|
|
|||
Loading…
Reference in New Issue