summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Chevrel <pascal@chevrel.org>2012-05-03 08:49:59 +0200
committerPascal Chevrel <pascal@chevrel.org>2012-05-03 08:49:59 +0200
commitf85c96ebbf2784182454c97ab1974823a279b68a (patch)
tree88d47ff955ee300d18110d1bbb47403d989f2a01
parentb757fea1b740740fc63d0f1409b2f334b00fe6e8 (diff)
downloadplanet-f85c96ebbf2784182454c97ab1974823a279b68a.tar
planet-f85c96ebbf2784182454c97ab1974823a279b68a.tar.gz
planet-f85c96ebbf2784182454c97ab1974823a279b68a.tar.bz2
planet-f85c96ebbf2784182454c97ab1974823a279b68a.tar.xz
planet-f85c96ebbf2784182454c97ab1974823a279b68a.zip
display moonmoon version in title bar of the administration panel, make the version number a variable
-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)){