From 6f67c78cf8668e570c5ef7fd4430e3d0e4a66aef Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 22 Nov 2008 12:49:58 +0000
Subject: [PATCH] Replaced php code for app version in main template with a
 template variable.

---
 interface/lib/app.inc.php                           | 1 +
 interface/web/themes/default/templates/main.tpl.htm | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/lib/app.inc.php b/interface/lib/app.inc.php
index 46a911485..9d635ae2f 100644
--- a/interface/lib/app.inc.php
+++ b/interface/lib/app.inc.php
@@ -181,6 +181,7 @@ class app {
 		if(isset($_SESSION['s']['user']) && $this->auth->has_clients($_SESSION['s']['user']['userid'])) {
 			$this->tpl->setVar('is_reseller', 1);
 		}
+		$this->tpl->setVar('ISPC_APP_VERSION', ISPC_APP_VERSION);
     }
     
 } // end class
diff --git a/interface/web/themes/default/templates/main.tpl.htm b/interface/web/themes/default/templates/main.tpl.htm
index 18c02daa5..cf3790d30 100644
--- a/interface/web/themes/default/templates/main.tpl.htm
+++ b/interface/web/themes/default/templates/main.tpl.htm
@@ -62,8 +62,7 @@
 		<!-- end: #main -->
 		<!-- begin: #footer -->
 		<div id="footer">
-<!--      Powered by <a href="http://www.ispconfig.com/">ISPConfig <?php echo ISPC_APP_VERSION; ?> beta</a></div> -->
-      Powered by <a href="http://www.howtoforge.com/forums/showthread.php?t=26988" target="_blank">ISPConfig <?php echo ISPC_APP_VERSION; ?> beta</a></div>
+      Powered by <a href="http://www.howtoforge.com/forums/showthread.php?t=26988" target="_blank">ISPConfig <tmpl_var name="ISPC_APP_VERSION"> beta</a></div>
     </div>
 		<!-- end: #footer -->
 	</div>
-- 
GitLab