Browse Source

Corrige la récupération d'un module

master
Clement Desmidt 2 years ago
parent
commit
56e63ed73e
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      class/AccueilModules.php

+ 4
- 4
class/AccueilModules.php View File

@@ -61,10 +61,10 @@ class AccueilModules
*/
public static function getModule($module)
{
if ($config = simplexml_load_file('../' . self::CONFIG_FILE)) {
$config_xml = $config->item;
foreach ($config_xml as $item) {
if ($item["id"] == $module) {
if ($config = simplexml_load_file(__DIR__.'/../'.self::CONFIG_FILE)) {
foreach ($config->item as $item) {
$item_id = (string) $item['id'];
if ($item_id == $module) {
$params = array();
foreach ($item as $confParam) {
$params[$confParam->getName()] = "$confParam";

Loading…
Cancel
Save