Dotclear


Ignore:
Timestamp:
10/05/13 01:20:52 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
default
Message:

daInstaller is a rebel ! Remove it by old school method. (and mainly whitout loading plugins anywhere)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/dbschema/upgrade.php

    r2271 r2274  
    342342 
    343343                    # 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'); 
    347361                    } 
    348362               } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map