mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
use new method ExtensionMgr::getExtensionFromRepository()
This commit is contained in:
parent
3b3ada2ff5
commit
d508ef93db
|
@ -95,10 +95,13 @@ elseif ($action == "import") { /* {{{ */
|
|||
if(!$_POST['url']) {
|
||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||
}
|
||||
$file = $extMgr->getExtensionFromRepository($_POST['url']);
|
||||
/*
|
||||
$reposurl = $settings->_repositoryUrl;
|
||||
$content = file_get_contents($reposurl."/".$_POST['url']);
|
||||
$file = tempnam(sys_get_temp_dir(), '');
|
||||
file_put_contents($file, $content);
|
||||
*/
|
||||
|
||||
// $extMgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir);
|
||||
$controller->setParam('extmgr', $extMgr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user