summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaurice Svay <maurice@svay.com>2012-05-05 11:21:35 -0700
committerMaurice Svay <maurice@svay.com>2012-05-05 11:21:35 -0700
commitc6153c75d4890bc5af198cffd2bee731c0814bc6 (patch)
tree88d47ff955ee300d18110d1bbb47403d989f2a01
parentb757fea1b740740fc63d0f1409b2f334b00fe6e8 (diff)
parentf85c96ebbf2784182454c97ab1974823a279b68a (diff)
downloadplanet-c6153c75d4890bc5af198cffd2bee731c0814bc6.tar
planet-c6153c75d4890bc5af198cffd2bee731c0814bc6.tar.gz
planet-c6153c75d4890bc5af198cffd2bee731c0814bc6.tar.bz2
planet-c6153c75d4890bc5af198cffd2bee731c0814bc6.tar.xz
planet-c6153c75d4890bc5af198cffd2bee731c0814bc6.zip
Merge pull request #42 from pascalchevrel/admin_template
display moonmoon version in title bar of the administration panel, make ...
-rwxr-xr-xadmin/template.php8
-rwxr-xr-xapp/app.php3
2 files changed, 9 insertions, 2 deletions
diff --git a/admin/template.php b/admin/template.php
index d5641f9..7818bef 100755
--- a/admin/template.php
+++ b/admin/template.php
@@ -3,7 +3,13 @@
<html lang="en">
<head>
<meta charset="utf-8">
- <title><?=_g('moonmoon administration')?></title>
+ <title>
+
+<?php
+ echo _g('Administration') . ' — ';
+ printf(_g('moonmoon %s', '%s is the version number for moonmoon, this string appears as the tab title in the admin panel'), $moon_version);
+?>
+ </title>
<link rel="stylesheet" media="screen" type="text/css" href="default.css">
<!--[if lte IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
diff --git a/app/app.php b/app/app.php
index f2795ab..0703ac5 100755
--- a/app/app.php
+++ b/app/app.php
@@ -19,7 +19,8 @@ include_once(dirname(__FILE__).'/classes/PlanetError.php');
include_once(dirname(__FILE__).'/classes/Planet.class.php');
include_once(dirname(__FILE__).'/classes/Simplel10n.class.php');
-$savedConfig = dirname(__FILE__).'/../custom/config.yml';
+$savedConfig = dirname(__FILE__).'/../custom/config.yml';
+$moon_version = file_get_contents(dirname(__FILE__).'/../VERSION');
if (is_file($savedConfig)){