replace hard coded repository url

This commit is contained in:
Uwe Steinmann 2018-03-21 15:24:45 +01:00
parent 0ad32b5517
commit cc12a00db9

View File

@ -95,7 +95,7 @@ elseif ($action == "import") { /* {{{ */
if(!$_POST['url']) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
$reposurl = 'http://seeddms.steinmann.cx/repository';
$reposurl = $settings->_repositoryUrl;
$content = file_get_contents($reposurl."/".$_POST['url']);
$file = tempnam(sys_get_temp_dir(), '');
file_put_contents($file, $content);