Commit 45397b8e authored by Thomas Citharel's avatar Thomas Citharel 🌲

Merge branch 'fix-missing-images-in-grav-bootstrap' into 'framasites'

Fix missing images in grav bootstrap

See merge request framasoft/framasite!13
parents e7e9ce17 1119f4b9
Pipeline #25911 passed with stage
in 5 minutes and 42 seconds
......@@ -127,6 +127,10 @@ class AsyncAccountGrav extends AbstractMakeAccount implements AsyncAccountInterf
$this->enginePath . '/user/pages/06.contact/',
$this->accountsPath . '/' . $this->site->getSubdomain() . '/user/pages/06.contact'
);
$this->rcopy(
$this->enginePath . '/user/pages/images/',
$this->accountsPath . '/' . $this->site->getSubdomain() . '/user/pages/images'
);
/**
* For each module, give what we need
......@@ -155,16 +159,16 @@ class AsyncAccountGrav extends AbstractMakeAccount implements AsyncAccountInterf
$customHomePage = '/page_simple';
break;
case Blog::MODULE_SINGLE_PAGE_CARROUSEL:
// disable this for now
$this->rcopy(
$this->accountsPath . '/demo-carousel/user/pages/01.page_carrousel/',
$this->accountsPath . '/' . $this->site->getSubdomain() . '/user/pages/01.page_carrousel'
);
$customHomePage = '/page_carousel';
break;
default:
break;
}
}
/**
* Set homepage for module
*/
}
/** Data */
......@@ -174,6 +178,9 @@ class AsyncAccountGrav extends AbstractMakeAccount implements AsyncAccountInterf
$systemFilePath = $this->accountsPath . '/' . $this->site->getSubdomain() . '/user/config/system.yaml';
$fs->copy($this->enginePath . '/user/config/system.yaml', $systemFilePath);
/**
* Set homepage for module
*/
if (null != $customHomePage) {
$system = Yaml::parse(file_get_contents($systemFilePath));
$system['home']['alias'] = $customHomePage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment