Overview
Comment:Passage aux objets
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: 400c8eb2df0df32bfbb06900955ff0ecbbc04ac5
User & Date: bohwaz on 2017-05-14 10:41:01
Other Links: branch diff | manifest | tags
Context
2017-05-16
04:56
Utilisation de KD2\Form pour le login check-in: a14a753be3 user: bohwaz tags: dev
2017-05-14
10:41
Passage aux objets check-in: 400c8eb2df user: bohwaz tags: dev
2017-05-12
05:24
Recette pour lancer un serveur de développement check-in: e8409c27d6 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Plugin.php from [3815e1aa10] to [8256935348].

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
		if (!$this->plugin)
		{
			throw new UserException('Ce plugin n\'existe pas ou n\'est pas installé correctement.');
		}

		$this->plugin->config = json_decode($this->plugin->config);
		
		if (!is_array($this->plugin->config))
		{
			$this->plugin->config = [];
		}

		$this->id = $id;
	}

	/**
	 * Enregistrer les changements dans la config







|

|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
		if (!$this->plugin)
		{
			throw new UserException('Ce plugin n\'existe pas ou n\'est pas installé correctement.');
		}

		$this->plugin->config = json_decode($this->plugin->config);
		
		if (!is_object($this->plugin->config))
		{
			$this->plugin->config = new \stdClass;
		}

		$this->id = $id;
	}

	/**
	 * Enregistrer les changements dans la config