Overview
SHA1:6dfbdc5d582cb1a23758eef78b83fc2bc193dee6
Date: 2018-07-05 14:33:50
User: bohwaz
Comment:Inclure le nom du plugin dans le message d'erreur
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-07-07
11:43
[f02c7dc73d] Fix: solde initial de compte bancaire doit venir d'un compte de report à nouveau (user: bohwaz, tags: trunk, stable)
2018-07-05
14:33
[6dfbdc5d58] Inclure le nom du plugin dans le message d'erreur (user: bohwaz, tags: trunk, stable)
2018-06-24
01:23
[b0c5c88ec9] Export CSV adapté à Excel, car c'est un logiciel de m**** (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Plugin.php from [d98f97b2d2] to [a13d03f59d].

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
	public function __construct($id)
	{
		$db = DB::getInstance();
		$this->plugin = $db->first('SELECT * FROM plugins WHERE id = ?;', $id);

		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;







|







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
	public function __construct($id)
	{
		$db = DB::getInstance();
		$this->plugin = $db->first('SELECT * FROM plugins WHERE id = ?;', $id);

		if (!$this->plugin)
		{
			throw new UserException(sprintf('Le plugin "%s" n\'existe pas ou n\'est pas installé correctement.', $id));
		}

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