Skip to content

Commit 6f67c78

Browse files
committed
Replaced php code for app version in main template with a template variable.
1 parent e10a323 commit 6f67c78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/lib/app.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ public function tpl_defaults()
181181
if(isset($_SESSION['s']['user']) && $this->auth->has_clients($_SESSION['s']['user']['userid'])) {
182182
$this->tpl->setVar('is_reseller', 1);
183183
}
184+
$this->tpl->setVar('ISPC_APP_VERSION', ISPC_APP_VERSION);
184185
}
185186

186187
} // end class

interface/web/themes/default/templates/main.tpl.htm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ <h1 id="ir-HeaderLogo" class="swap"><span>ISPConfig 3</span></h1>
6262
<!-- end: #main -->
6363
<!-- begin: #footer -->
6464
<div id="footer">
65-
<!-- Powered by <a href="http://www.ispconfig.com/">ISPConfig <?php echo ISPC_APP_VERSION; ?> beta</a></div> -->
66-
Powered by <a href="http://www.howtoforge.com/forums/showthread.php?t=26988" target="_blank">ISPConfig <?php echo ISPC_APP_VERSION; ?> beta</a></div>
65+
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>
6766
</div>
6867
<!-- end: #footer -->
6968
</div>

0 commit comments

Comments
 (0)