Fixes https://github.com/getgrav/grav/issues/476, replace default themes service with admin own theme service to avoid loading the default theme

This commit is contained in:
Flavio Copes
2015-11-25 18:31:25 +01:00
parent df6c589806
commit 970d77219e
2 changed files with 24 additions and 0 deletions

18
classes/themes.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
namespace Grav\Plugin;
/**
* Admin theme object
*
* @author RocketTheme
* @license MIT
*/
class Themes extends \Grav\Common\Themes
{
public function init()
{
/** @var Themes $themes */
$themes = $this->grav['themes'];
$themes->configure();
}
}