Impoved the update server naming ability.

This commit is contained in:
Llewellyn van der Merwe 2020-05-24 23:59:55 +02:00
parent 3a2b8497e3
commit eda4d594d6
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C

View File

@ -1177,13 +1177,12 @@ class Interpretation extends Fields
{ {
$updateXML[] = '</updates>'; $updateXML[] = '</updates>';
// UPDATE_SERVER_XML // UPDATE_SERVER_XML
$name = str_replace( $name = substr(
'.xml', '', substr(
$this->componentData->update_server_url, $this->componentData->update_server_url,
strrpos($this->componentData->update_server_url, '/') strrpos($this->componentData->update_server_url, '/')
+ 1 + 1
) );
); $name = explode('.xml', $name)[0];
$target = array('admin' => $name); $target = array('admin' => $name);
$this->buildDynamique($target, 'update_server'); $this->buildDynamique($target, 'update_server');
$this->fileContentDynamic[$name][$this->hhh $this->fileContentDynamic[$name][$this->hhh