Skip to content
Browse files

display moonmoon version in title bar of the administration panel, ma…

…ke the version number a variable
  • Loading branch information...
1 parent b757fea commit f85c96ebbf2784182454c97ab1974823a279b68a @pascalchevrel committed May 3, 2012
Showing with 9 additions and 2 deletions.
  1. +7 −1 admin/template.php
  2. +2 −1 app/app.php
View
8 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>
View
3 app/app.php
@@ -19,7 +19,8 @@
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)){

0 comments on commit f85c96e

Please sign in to comment.
Something went wrong with that request. Please try again.