Эх сурвалжийг харах

Change how the record template is used in Call Center

Mark Crane 11 жил өмнө
parent
commit
8adb516c6b
1 өөрчлөгдсөн 6 нэмэгдсэн , 1 устгасан
  1. 6 1
      resources/footer.php

+ 6 - 1
resources/footer.php

@@ -33,8 +33,13 @@ require_once "resources/require.php";
 //set a default template
 	if (strlen($_SESSION['domain']['template']['name']) == 0) { $_SESSION['domain']['template']['name'] = 'default'; }
 
+//clear the template
+	if ($_SESSION['theme']['cache']['boolean'] == "false") {
+			$_SESSION["template_content"] = '';
+	}
+
 //set a default template
-	if (strlen($_SESSION["template_content"])==0) { //build template if session template has no length
+	if (strlen($_SESSION["template_content"]) == 0) { //build template if session template has no length
 		$v_template_path = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/themes';
 		if (strlen($template_rss_sub_category) > 0) {
 			//this template was assigned by the content manager