Rev | Line | |
---|
[1] | 1 | <?php |
---|
| 2 | |
---|
| 3 | function e_edito($env) |
---|
| 4 | { if(($env->out["edito"] = $env->data->edito()) !== false) |
---|
| 5 | { $path = array("root", "news"); |
---|
| 6 | $depth = 1; |
---|
| 7 | if(($env->out["categories"] = $env->data->all_news_categories()) !== false) |
---|
| 8 | { if(($env->out["news"] = $env->data->news($path, 0, $depth, true, 5)) !== false) |
---|
| 9 | { |
---|
| 10 | } |
---|
| 11 | else $env->erreur .= "<br>Impossible de lire la liste des news"; |
---|
| 12 | } |
---|
| 13 | else $env->erreur .= "<br>Impossible de lire la liste des categories de news"; |
---|
| 14 | } |
---|
| 15 | else $env->erreur = "Impossible de lire l'édito"; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.