Overview
Comment:Inclure le nom du plugin dans le message d'erreur
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 6dfbdc5d582cb1a23758eef78b83fc2bc193dee6
User & Date: bohwaz on 2018-07-05 14:33:50
Other Links: manifest | tags
Context
2018-07-07
11:43
Fix: solde initial de compte bancaire doit venir d'un compte de report à nouveau check-in: f02c7dc73d user: bohwaz tags: trunk, stable
2018-07-05
14:33
Inclure le nom du plugin dans le message d'erreur check-in: 6dfbdc5d58 user: bohwaz tags: trunk, stable
2018-06-24
01:23
Export CSV adapté à Excel, car c'est un logiciel de m**** check-in: b0c5c88ec9 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;