Bug export
This commit is contained in:
parent
b78e52c5d4
commit
9c5f6448b1
@ -381,7 +381,7 @@ class course extends common
|
|||||||
|
|
||||||
// Données pour le formulaire
|
// Données pour le formulaire
|
||||||
self::$pagesList = $this->getData(['page']);
|
self::$pagesList = $this->getData(['page']);
|
||||||
|
|
||||||
// Exclure les barres et les pages désactivées
|
// Exclure les barres et les pages désactivées
|
||||||
foreach (self::$pagesList as $pageId => $page) {
|
foreach (self::$pagesList as $pageId => $page) {
|
||||||
if (
|
if (
|
||||||
@ -1750,13 +1750,12 @@ class course extends common
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
if ($this->isPost()) {
|
||||||
$datas = '';
|
$datas = '';
|
||||||
$resources = [];
|
$resources = [];
|
||||||
|
|
||||||
foreach (self::$pagesList as $pageId => $page) {
|
foreach ($this->getData(['page']) as $pageId => $page) {
|
||||||
if ($this->getInput('courseManageExport' . $pageId, helper::FILTER_BOOLEAN) === true) {
|
if ($this->getInput('courseManageExport' . $pageId, helper::FILTER_BOOLEAN) === true) {
|
||||||
$pageContent = $this->getPage($pageId, $courseId);
|
$pageContent = $this->getPage($pageId, $courseId);
|
||||||
|
|
||||||
@ -1811,7 +1810,7 @@ class course extends common
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Export de Pages</title>
|
<title>' . $this->getData(['course', $courseId, 'title']). '</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>' . $datas . '</body></html>';
|
<body>' . $datas . '</body></html>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user