[SUCS Devel] site r627 - in branches/sucs-site: htdocs lib templates

imranh at sucs.org imranh at sucs.org
Wed Dec 31 22:23:21 GMT 2014


Author: imranh
Date: 2014-12-31 22:23:18 +0000 (Wed, 31 Dec 2014)
New Revision: 627

Modified:
   branches/sucs-site/htdocs/index.php
   branches/sucs-site/lib/page-feedback.php
   branches/sucs-site/templates/foot.tpl
Log:
Re-enabling the feedback form

Modified: branches/sucs-site/htdocs/index.php
===================================================================
--- branches/sucs-site/htdocs/index.php	2014-12-31 17:18:02 UTC (rev 626)
+++ branches/sucs-site/htdocs/index.php	2014-12-31 22:23:18 UTC (rev 627)
@@ -48,6 +48,12 @@
 $session = new Session;
 $smarty->assign_by_ref("session", $session);
 
+
+// include feedback form stuff
+if ($session->loggedin) {
+	include("../lib/page-feedback.php");
+}
+
 /* --------------------------------------------------------
     Debugging
    -------------------------------------------------------- */

Modified: branches/sucs-site/lib/page-feedback.php
===================================================================
--- branches/sucs-site/lib/page-feedback.php	2014-12-31 17:18:02 UTC (rev 626)
+++ branches/sucs-site/lib/page-feedback.php	2014-12-31 22:23:18 UTC (rev 627)
@@ -14,8 +14,7 @@
 		mail($contact, "SUCS Website Feedback", $msgbody);
 		$smarty->assign("feedbacked", TRUE);
 	}
-	$secondary = $smarty->fetch("feedback.tpl");
-	$smarty->append("secondary", $secondary);
+	$smarty->fetch("feedback.tpl");
 }
 
 

Modified: branches/sucs-site/templates/foot.tpl
===================================================================
--- branches/sucs-site/templates/foot.tpl	2014-12-31 17:18:02 UTC (rev 626)
+++ branches/sucs-site/templates/foot.tpl	2014-12-31 22:23:18 UTC (rev 627)
@@ -6,11 +6,11 @@
 
 {include file="search.tpl"}
 
-{*if $session->loggedin}
+{if $session->loggedin}
 	<div style="resize: both;">
 		{include file="feedback.tpl"}
 	</div>
-{/if*}
+{/if}
 
 {* include file="valid.tpl" *}
 




More information about the Devel mailing list