@@ -41,7 +41,7 @@ function duplicate() {
41
41
42
42
$ srcDir = DIR_THEMES . $ theme ;
43
43
$ destDir = DIR_THEMES . $ newSlug ;
44
- $ skipFolders = ['backup ' , 'src ' , 'node_modules ' , '.git ' ];
44
+ $ skipFolders = [/* 'backup', */ 'src ' , 'node_modules ' , '.git ' ];
45
45
46
46
if ($ dest ) {
47
47
if (file_exists ($ destDir )) {
@@ -128,7 +128,7 @@ function upload() {
128
128
}
129
129
130
130
function index () {
131
- $ themes = ThemesList :: getList ();
131
+ $ themes = ThemesList :: getList ($ this -> global [ ' site_id ' ] );
132
132
133
133
$ this ->view ->themes = $ themes ;
134
134
//$this->view->count = count($themes);
@@ -179,7 +179,7 @@ function import() {
179
179
function activate () {
180
180
$ theme = $ this ->request ->get ['theme ' ];
181
181
182
- if (Sites::setTheme ($ this ->global ['site_id ' ], $ theme )) {
182
+ if (Sites::setTheme ($ this ->global ['site_id ' ], $ theme, ' index.html ' )) {
183
183
$ themeName = \Vvveb \humanReadable ($ theme );
184
184
$ this ->themeActivateUrl = \Vvveb \url (['module ' => 'theme/themes ' , 'action ' => 'import ' , 'theme ' => $ theme ]);
185
185
$ successMessage = sprintf (__ ('Theme <b>%s</b> was activated! ' ), $ themeName , $ this ->themeActivateUrl );
0 commit comments