Dotclear


Ignore:
Timestamp:
10/02/13 17:47:15 (12 years ago)
Author:
Denis Jean-Chirstian <contact@…>
Branch:
dcRepo
Message:

Rename dcRepository to dcStore because of dotAddict used this name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.moduleslist.php

    r2215 r2216  
    1616     public $core; 
    1717     public $modules; 
    18      public $repository; 
     18     public $store; 
    1919 
    2020     public static $allow_multi_install = false; 
     
    4747          $this->core = $modules->core; 
    4848          $this->modules = $modules; 
    49           $this->repository = new dcRepository($modules, $xml_url); 
     49          $this->store = new dcStore($modules, $xml_url); 
    5050 
    5151          $this->setPathInfo($modules_root); 
     
    231231     } 
    232232 
     233     /** @todo Use new mesasge system **/ 
    233234     public function displayMessage($action) 
    234235     { 
     
    487488                    } break; 
    488489 
    489                     # Install (from repository) 
     490                    # Install (from store) 
    490491                    case 'install': if ($this->path_writable) { 
    491492                         $submits[] =  
     
    493494                    } break; 
    494495 
    495                     # Update (from repository) 
     496                    # Update (from store) 
    496497                    case 'update': if ($this->path_writable) { 
    497498                         $submits[] =  
     
    591592               elseif (!empty($_POST['install'])) { 
    592593 
    593                     $updated = $this->repository->get(); 
     594                    $updated = $this->store->get(); 
    594595                    if (!isset($updated[$id])) { 
    595596                         throw new Exception(__('No such module.')); 
     
    604605                    $this->core->callBehavior($prefix.'BeforeAdd', $module); 
    605606 
    606                     $ret_code = $this->repository->process($module['file'], $dest); 
     607                    $ret_code = $this->store->process($module['file'], $dest); 
    607608 
    608609                    # --BEHAVIOR-- moduleAfterAdd 
     
    614615               elseif (!empty($_POST['update'])) { 
    615616 
    616                     $updated = $repository->get(); 
     617                    $updated = $store->get(); 
    617618                    if (!isset($updated[$id])) { 
    618619                         throw new Exception(__('No such module.')); 
     
    639640                    $this->core->callBehavior($prefix.'BeforeUpdate', $module); 
    640641 
    641                     $this->repository->process($module['file'], $dest); 
     642                    $this->store->process($module['file'], $dest); 
    642643 
    643644                    # --BEHAVIOR-- moduleAfterUpdate 
     
    666667                    $url = urldecode($_POST['pkg_url']); 
    667668                    $dest = $this->getPath().'/'.basename($url); 
    668                     $this->repository->download($url, $dest); 
     669                    $this->store->download($url, $dest); 
    669670               } 
    670671 
     
    672673               $this->core->callBehavior($prefix.'BeforeAdd', null); 
    673674 
    674                $ret_code = $this->repository->install($dest); 
     675               $ret_code = $this->store->install($dest); 
    675676 
    676677               # --BEHAVIOR-- moduleAfterAdd 
     
    861862               $has_parent = !empty($module['parent']); 
    862863               if ($has_parent) { 
    863                     $is_parent_present = $this->core->themes->moduleExists($parent); 
     864                    $is_parent_present = $this->modules->moduleExists($parent); 
    864865               } 
    865866 
Note: See TracChangeset for help on using the changeset viewer.

Sites map