export ok à tester
This commit is contained in:
parent
74f0f60a8a
commit
3dcf8f1b96
@ -258,6 +258,8 @@ class addon extends common {
|
||||
// Parcourir les pages utilisant le module
|
||||
foreach (array_keys($inPages,$this->getUrl(2)) as $pageId) {
|
||||
foreach ($infoModules[$this->getUrl(2)]['dataDirectory'] as $moduleId) {
|
||||
// Export des pages hébergeant le module
|
||||
$pageContent[$pageId] = $this->getData(['page',$pageId]);
|
||||
/**
|
||||
* Données module.json ?
|
||||
*/
|
||||
@ -290,6 +292,10 @@ class addon extends common {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Enregistrement des pages
|
||||
if (!file_exists($tmpFolder . '/fr/page.json')) {
|
||||
file_put_contents($tmpFolder . '/fr/page.json', json_encode($pageContent));
|
||||
}
|
||||
// création du zip
|
||||
$fileName = $this->getUrl(2) . '.zip';
|
||||
$this->makeZip ($fileName, $tmpFolder, []);
|
||||
|
Loading…
Reference in New Issue
Block a user