Fix notes
This commit is contained in:
parent
c00aac5b79
commit
1c11969554
2 changed files with 10 additions and 4 deletions
|
@ -14,7 +14,12 @@ class NotesAction extends YesWikiAction
|
||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
$noteManager = $this->getService(NoteManager::class);
|
try {
|
||||||
return $noteManager->viewBulletins();
|
$noteManager = $this->getService(NoteManager::class);
|
||||||
|
return $noteManager->viewBulletins();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return 'Exception reçue : '.$e->getMessage()."\n";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,9 @@ class Bulletin {
|
||||||
$listManager = $wiki->services->get(ListManager::class);
|
$listManager = $wiki->services->get(ListManager::class);
|
||||||
$matieres = $listManager->getOne('ListeMatiere');
|
$matieres = $listManager->getOne('ListeMatiere');
|
||||||
// echo "<p>".var_dump($matieres)."</p>";
|
// echo "<p>".var_dump($matieres)."</p>";
|
||||||
foreach ($matieres['nodes'] as $matiere) {
|
foreach ($matieres['label'] as $id => $matiere) {
|
||||||
$this->matieres[] = new Matiere($wiki, $this, $matiere["id"], $matiere["label"]);
|
// echo "<p>".$id."</pd>";
|
||||||
|
$this->matieres[] = new Matiere($wiki, $this, $id, $matiere);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue