Changeset 2274:9215704d1b37 for inc/dbschema/upgrade.php
- Timestamp:
- 10/05/13 01:20:52 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/dbschema/upgrade.php
r2271 r2274 342 342 343 343 # daInstaller has been integrated to the core. 344 $core->plugins->loadModules(DC_PLUGINS_ROOT); 345 if ($core->plugins->moduleExists('daInstaller')) { 346 $core->plugins->deleteModule('daInstaller'); 344 # Try to remove it 345 $path = explode(PATH_SEPARATOR,DC_PLUGINS_ROOT); 346 foreach ($path as $root) 347 { 348 if (!is_dir($root) || !is_readable($root)) { 349 continue; 350 } 351 if (substr($root,-1) != '/') { 352 $root .= '/'; 353 } 354 if (($p = @dir($root)) === false) { 355 continue; 356 } 357 if (($d = @dir($root.'daInstaller')) === false) { 358 continue; 359 } 360 files::deltree($root.'/daInstaller'); 347 361 } 348 362 }
Note: See TracChangeset
for help on using the changeset viewer.