Changeset 905
- Timestamp:
- 07/20/08 14:44:00 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/arnoschn/cache/lib/AkPlugin/AkPluginManager.php
r904 r905 80 80 if(!empty($repository_candidates)){ 81 81 foreach ($repository_candidates as $repository_candidate){ 82 if(strlen($repository_candidate) > 0 && $repository_candidate[0] != '#' && strstr($repository_candidate,'plugins')){ 82 if(strlen($repository_candidate) > 0 && isset($repository_candidate[0]) && 83 $repository_candidate[0] != '#' && strstr($repository_candidate,'plugins')){ 83 84 $this->repositories[] = $repository_candidate; 84 85 } … … 197 198 198 199 $plugin_name = Ak::sanitize_include($plugin_name, 'high'); 199 200 200 201 $install_method = $this->guessBestInstallMethod($options); 201 202 202 203 if($install_method != 'local directory'){ 203 204 $repository = $this->getRepositoryForPlugin($plugin_name, $repository); 204 205 } 205 206 206 if(!$options['force'] && is_dir(AK_PLUGINS_DIR.DS.$plugin_name)){ 207 207 trigger_error(Ak::t('Destination directory is not empty. Use force option to overwrite exiting files.'), E_USER_NOTICE); … … 521 521 522 522 523 523 524 524 function _shouldUseSvnExternals() 525 525 { … … 545 545 `svn update $plugin_dir`; 546 546 } 547 547 548 548 function _installUsingLocalDirectory($name, $path, $rev = null) 549 549 { … … 566 566 `svn export $force $rev $uri/$name $plugin_dir`; 567 567 } 568 568 569 569 function _updateUsingExport($name, $uri) 570 570 { … … 582 582 $this->_installUsingCheckout($name, $uri, $rev, $force); 583 583 } 584 584 585 585 function _updateUsingExternals($name) 586 586 { 587 587 $this->_updateUsingCheckout($name); 588 588 } 589 589 590 590 function _updateUsingHttp($name, $uri) 591 591 { … … 596 596 $this->_copyRemoteDir(rtrim($uri, '/').'/'.$name.'/', AK_PLUGINS_DIR); 597 597 } 598 599 598 599 600 600 function _setExternals($items, $extras = '') 601 601 { … … 638 638 $this->_copyRemoteDir(rtrim($uri, '/').'/'.$name.'/', AK_PLUGINS_DIR); 639 639 } 640 640 641 641 } 642 642
