Merge pull request #5752 from greenbea/patch-16
dialplan xml fix cache delete when editing global dialplans
This commit is contained in:
@@ -92,8 +92,11 @@
|
|||||||
$database->save($array);
|
$database->save($array);
|
||||||
unset($array);
|
unset($array);
|
||||||
|
|
||||||
//clear the cache
|
//clear the cache
|
||||||
$cache = new cache;
|
$cache = new cache;
|
||||||
|
if ($dialplan_context == "\${domain_name}" or $dialplan_context == "global") {
|
||||||
|
$dialplan_context = "*";
|
||||||
|
}
|
||||||
$cache->delete("dialplan:".$dialplan_context);
|
$cache->delete("dialplan:".$dialplan_context);
|
||||||
|
|
||||||
//save the message to a session variable
|
//save the message to a session variable
|
||||||
|
|||||||
Reference in New Issue
Block a user