mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-07-15 08:58:10 +00:00
replace hard coded repository url
This commit is contained in:
parent
0ad32b5517
commit
cc12a00db9
|
@ -95,7 +95,7 @@ elseif ($action == "import") { /* {{{ */
|
||||||
if(!$_POST['url']) {
|
if(!$_POST['url']) {
|
||||||
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
|
||||||
}
|
}
|
||||||
$reposurl = 'http://seeddms.steinmann.cx/repository';
|
$reposurl = $settings->_repositoryUrl;
|
||||||
$content = file_get_contents($reposurl."/".$_POST['url']);
|
$content = file_get_contents($reposurl."/".$_POST['url']);
|
||||||
$file = tempnam(sys_get_temp_dir(), '');
|
$file = tempnam(sys_get_temp_dir(), '');
|
||||||
file_put_contents($file, $content);
|
file_put_contents($file, $content);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user