Update switch_music_on_hold.php
Add missing forward slashes so the pattern will be correct for the preg_replace.
This commit is contained in:
parent
b8e3070cdc
commit
7f1873df99
|
|
@ -192,8 +192,8 @@ include "root.php";
|
||||||
$default_moh_prefix = 'music';
|
$default_moh_prefix = 'music';
|
||||||
}
|
}
|
||||||
//replace the variables
|
//replace the variables
|
||||||
$file_contents = preg_replace("music\/default", $default_moh_prefix, $file_contents);
|
$file_contents = preg_replace("/music\/default/", $default_moh_prefix, $file_contents);
|
||||||
$file_contents = preg_replace("[\t ]*(?:<!--)?{v_moh_categories}(?:-->)?", $this->xml, $file_contents);
|
$file_contents = preg_replace("/[\t ]*(?:<!--)?{v_moh_categories}(?:-->)?/", $this->xml, $file_contents);
|
||||||
|
|
||||||
//write the XML config file
|
//write the XML config file
|
||||||
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/local_stream.conf.xml","w");
|
$fout = fopen($_SESSION['switch']['conf']['dir']."/autoload_configs/local_stream.conf.xml","w");
|
||||||
|
|
@ -212,4 +212,4 @@ include "root.php";
|
||||||
//$moh->xml();
|
//$moh->xml();
|
||||||
//$moh->save();
|
//$moh->save();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue