Changeset 2241:4168cffbc76e for inc/admin
- Timestamp:
- 10/04/13 10:34:31 (12 years ago)
- Branch:
- dcRepo
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.moduleslist.php
r2227 r2241 75 75 * @return adminModulesList self instance 76 76 */ 77 public function initList($id)77 public function setList($id) 78 78 { 79 79 $this->data = array(); … … 82 82 83 83 return $this; 84 } 85 86 /** 87 * Get list ID. 88 * 89 * @return List ID 90 */ 91 public function getList() 92 { 93 return $this->list_id; 84 94 } 85 95 … … 136 146 { 137 147 return $this->path_writable 138 && preg_match('!^'.$this->path_pattern.'!', $root)148 && (preg_match('!^'.$this->path_pattern.'!', $root) || defined('DC_DEV') && DC_DEV) 139 149 && $this->core->auth->isSuperAdmin(); 140 150 } … … 652 662 # Delete 653 663 case 'delete': if ($this->isDeletablePath($module['root'])) { 664 $dev = !preg_match('!^'.$this->path_pattern.'!', $module['root']) && defined('DC_DEV') && DC_DEV ? ' debug' : ''; 654 665 $submits[] = 655 '<input type="submit" class="delete " name="delete" value="'.__('Delete').'" />';666 '<input type="submit" class="delete '.$dev.'" name="delete" value="'.__('Delete').'" />'; 656 667 } break; 657 668 … … 667 678 '<input type="submit" name="update" value="'.__('Update').'" />'; 668 679 } break; 669 } 670 } 680 681 # Behavior 682 case 'behavior': 683 684 # --BEHAVIOR-- adminModulesListGetActions 685 $tmp = $this->core->callBehavior('adminModulesListGetActions', $this, $id, $module); 686 687 if (!empty($tmp)) { 688 $submits[] = $tmp; 689 } 690 break; 691 } 692 } 693 671 694 672 695 return $submits; … … 798 821 elseif (!empty($_POST['update'])) { 799 822 800 $updated = $ store->get();823 $updated = $this->store->get(); 801 824 if (!isset($updated[$id])) { 802 825 throw new Exception(__('No such module.')); … … 830 853 dcPage::addSuccessNotice(__('Module has been successfully updated.')); 831 854 http::redirect($this->getURL()); 855 } 856 else { 857 858 # --BEHAVIOR-- adminModulesListDoActions 859 $this->core->callBehavior('adminModulesListDoActions', $this, $id, $prefix); 860 832 861 } 833 862 }
Note: See TracChangeset
for help on using the changeset viewer.