mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
move code for downloading new extension list into controller
This commit is contained in:
parent
7733da5133
commit
16d9cb5c1e
|
@ -113,6 +113,19 @@ elseif ($action == "import") { /* {{{ */
|
|||
add_log_line();
|
||||
header("Location:../out/out.ExtensionMgr.php?currenttab=".$currenttab);
|
||||
} /* }}} */
|
||||
elseif ($action == "getlist") { /* {{{ */
|
||||
$v = new SeedDMS_Version();
|
||||
$controller->setParam('extmgr', $extMgr);
|
||||
$controller->setParam('forceupdate', (isset($_POST['forceupdate']) && $_POST['forceupdate']) ? true : false);
|
||||
$controller->setParam('version', $v->version());
|
||||
if (!$controller($_POST)) {
|
||||
$session->setSplashMsg(array('type'=>'error', 'msg'=>getMLText('error_extension_getlist').$controller->getErrorMsg(), 'timeout'=>5000));
|
||||
} else {
|
||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_extension_getlist')));
|
||||
}
|
||||
add_log_line();
|
||||
header("Location:../out/out.ExtensionMgr.php?currenttab=".$currenttab);
|
||||
} /* }}} */
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -41,11 +41,6 @@ if(isset($_GET['currenttab']))
|
|||
else
|
||||
$currenttab = 'installed';
|
||||
|
||||
if(isset($_GET['forceupdate']) && $_GET['forceupdate']==1)
|
||||
$extmgr->updateExtensionList(true);
|
||||
else
|
||||
$extmgr->updateExtensionList();
|
||||
|
||||
if($view) {
|
||||
$view->setParam('httproot', $settings->_httpRoot);
|
||||
$view->setParam('extdir', $settings->_rootDir."/ext");
|
||||
|
|
Loading…
Reference in New Issue
Block a user