Removing the old types of global variables ($year, $version, $datetime)
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 26 Jun 2008 17:17:11 +0000 (13:17 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 26 Jun 2008 17:17:11 +0000 (13:17 -0400)
* global.php
* templates/footer.tpl
* templates/header.tpl

global.php
templates/footer.tpl
templates/header.tpl

index 1899afc7e86ccd4c8cf97f5e5585e7af237cc99f..cfe5e381bb17b7d83e8416194cf60b41870a7465 100755 (executable)
@@ -33,9 +33,6 @@ BSTemplate::$templatePath     = 'templates/%s.tpl';
 
 // ###################################################################
 // global template variables
-$datetime = $datef->format('l, F j, Y g:i A');
-$year = $datef->format('Y');
-$version = bugdar::$options['trackerversion'];
 
 $show = array(
        'admin'         => can_perform('canadminpanel'),
index ea8a8adff1d8783f1a743175df1ee7e6fb9a90c2..2c4f8809b0a3e9690416c4251dcc8c1ced6ecc6b 100644 (file)
@@ -1,7 +1,7 @@
 </div>
 
 <div id="copyright">
-       <div><%-T("Powered by Bugdar")%>, <%-T("Copyright")%> &copy;2002 - <%- $year %> Blue Static</div>
+       <div><%-T("Powered by Bugdar")%>, <%-T("Copyright")%> &copy;2002 - <%- date('Y') %> Blue Static</div>
 </div>
 
 </body>
index 03b4ba4ccf4ab87b876b3bc30ff1e0b41a65c530..b464cad01858fbf666aca9f3a11ac7842b776733 100644 (file)
@@ -9,7 +9,7 @@
        <span id="title"><a href="index.php"><%- bugdar::$options['trackertitle'] %></a></span>
        &nbsp;
        <img src="templates/images/clock.gif" alt="<%-T("Current Date and Time")%>" />
-       <span id="time"><%- $datetime %></span>
+       <span id="time"><%- BSApp::$date->format('l, F j, Y g:i A') %></span>
 </div>
 
 <% if (!bugdar::$userinfo['userid']): %>