Fix notes

This commit is contained in:
mckmonster 2024-08-03 12:07:23 +02:00
parent c00aac5b79
commit 1c11969554
2 changed files with 10 additions and 4 deletions

View file

@ -14,7 +14,12 @@ class NotesAction extends YesWikiAction
public function run()
{
try {
$noteManager = $this->getService(NoteManager::class);
return $noteManager->viewBulletins();
} catch (Exception $e) {
return 'Exception reçue : '.$e->getMessage()."\n";
}
}
}

View file

@ -18,8 +18,9 @@ class Bulletin {
$listManager = $wiki->services->get(ListManager::class);
$matieres = $listManager->getOne('ListeMatiere');
// echo "<p>".var_dump($matieres)."</p>";
foreach ($matieres['nodes'] as $matiere) {
$this->matieres[] = new Matiere($wiki, $this, $matiere["id"], $matiere["label"]);
foreach ($matieres['label'] as $id => $matiere) {
// echo "<p>".$id."</pd>";
$this->matieres[] = new Matiere($wiki, $this, $id, $matiere);
}
}