Fix a syntax problem.

This commit is contained in:
Mark Crane
2014-10-25 00:19:43 +00:00
parent b006d8c28c
commit 46ebdd2fce
@@ -181,12 +181,13 @@ include "root.php";
public function save() { public function save() {
//get the contents of the template //get the contents of the template
if (file_exists('/usr/share/examples/fusionpbx')) { if (file_exists('/usr/share/examples/fusionpbx')) {
$file_contents = file_get_contents("/usr/share/examples/fusionpbx/resources/templates/conf/autoload_configs/local_stream.conf.xml"); $file_contents = file_get_contents("/usr/share/examples/fusionpbx/resources/templates/conf/autoload_configs/local_stream.conf.xml");
else }
$file_contents = file_get_contents($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf/autoload_configs/local_stream.conf.xml"); else {
fi $file_contents = file_get_contents($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/conf/autoload_configs/local_stream.conf.xml");
} }
//replace the variable //replace the variable
$file_contents = str_replace("{v_moh_categories}", $this->xml, $file_contents); $file_contents = str_replace("{v_moh_categories}", $this->xml, $file_contents);