Changeset 1372
- Timestamp:
- 2009년 01월 09일 21시 19분 18초 (20 months ago)
- Location:
- trunk/metabbs
- Files:
-
- 2 modified
-
app/models/plugin.php (modified) (2 diffs)
-
core/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/metabbs/app/models/plugin.php
r1371 r1372 7 7 var $description = ''; 8 8 var $plugin_name; 9 var $installed_version = 0;9 //var $installed_version = 0; 10 10 var $version = 0; 11 11 … … 46 46 function on_uninstall() { } 47 47 function on_update() { 48 // 업데이트 성공하면 true, 실패하면 false 49 return true; 48 $this->update_to($this->version); 50 49 } 51 50 } -
trunk/metabbs/core/plugin.php
r1371 r1372 14 14 if ($plugin->enabled) { 15 15 $plugin->on_init(); 16 if ($plugin->version > $plugin->installed_version) 16 if (isset($plugin->installed_version) && 17 $plugin->version > $plugin->installed_version) 17 18 $plugin->on_update(); 18 19 }
