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()
|
||||
{
|
||||
$noteManager = $this->getService(NoteManager::class);
|
||||
return $noteManager->viewBulletins();
|
||||
try {
|
||||
$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);
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue