Overview
Comment: | Correction bugs mise à jour plugin |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
7fa91bc99f45d390a38c63906cccf4f5 |
User & Date: | bohwaz on 2015-01-18 02:20:01 |
Other Links: | manifest | tags |
Context
2015-01-18
| ||
02:20 | Correction bugs squelette par plugin check-in: bd066439f3 user: bohwaz tags: trunk | |
02:20 | Correction bugs mise à jour plugin check-in: 7fa91bc99f user: bohwaz tags: trunk | |
2015-01-15
| ||
18:43 | la suppression de membre était cassée à cause des contraintes de foreign keys, réparons cela check-in: 40c40f1cca user: bohwaz tags: trunk | |
Changes
Modified src/include/lib/Garradin/Plugin.php from [590cae23c9] to [842384f851].
︙ | ︙ | |||
240 241 242 243 244 245 246 247 248 249 250 251 | * Appelle le fichier upgrade.php dans l'archive si celui-ci existe. * @return boolean TRUE si tout a fonctionné */ public function upgrade() { if (file_exists($this->path() . '/upgrade.php')) { include $this->path() . '/upgrade.php'; } $db = DB::getInstance(); return $db->simpleUpdate('plugins', | > > > < | > | 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | * Appelle le fichier upgrade.php dans l'archive si celui-ci existe. * @return boolean TRUE si tout a fonctionné */ public function upgrade() { if (file_exists($this->path() . '/upgrade.php')) { $plugin = $this; include $this->path() . '/upgrade.php'; } $infos = parse_ini_file($this->path() . '/garradin_plugin.ini', false); $db = DB::getInstance(); return $db->simpleUpdate('plugins', ['version' => $infos['version']], 'id = \''.$db->escapeString($this->id).'\''); } public function registerSkelLoopName($name) { $db = DB::getInstance(); $registered = $db->simpleQuerySingle('SELECT plugin FROM plugins_skel_boucles WHERE nom = ?;', $name); |
︙ | ︙ |