mirror of
https://github.com/humhub/humhub.git
synced 2025-04-22 16:11:55 +02:00
More dynamic paths
This commit is contained in:
parent
9f7a046ed6
commit
4b98e59be8
@ -53,7 +53,7 @@ class HTheme extends CTheme {
|
||||
*/
|
||||
public static function getThemes() {
|
||||
$themes = array();
|
||||
$themePath = Yii::getPathOfAlias('webroot') . DIRECTORY_SEPARATOR . "themes";
|
||||
$themePath = Yii::app()->themeManager->getBasePath();
|
||||
|
||||
foreach (scandir($themePath) as $file) {
|
||||
if ($file == "." || $file == ".." || !is_dir($themePath . DIRECTORY_SEPARATOR . $file)) {
|
||||
|
@ -27,9 +27,7 @@
|
||||
class InstallerModule extends CWebModule {
|
||||
|
||||
public function init() {
|
||||
|
||||
//set layout
|
||||
$this->layoutPath = "protected/modules_core/installer/views/";
|
||||
$this->setLayoutPath(Yii::getPathOfAlias('installer.views'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -45,7 +43,6 @@ class InstallerModule extends CWebModule {
|
||||
return true;
|
||||
$success = true;
|
||||
} catch (Exception $e) {
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user