diff --git a/html/index.php b/html/index.php
index 0fb6daa8f..335656446 100644
--- a/html/index.php
+++ b/html/index.php
@@ -305,7 +305,7 @@ if (isset($_REQUEST['reconnect'])&&isset($_REQUEST['backurl']))
- version NOALYSS_VERSION -
+ version =NOALYSS_VERSION?> -
diff --git a/include/class/mobile.class.php b/include/class/mobile.class.php
index 80d86ec0a..17d9a6890 100644
--- a/include/class/mobile.class.php
+++ b/include/class/mobile.class.php
@@ -73,6 +73,7 @@ class Mobile
*/
function page_start()
{
+ global $version_noalyss;
// check not called twiced
static $already_call=0;
if ($already_call==1)
@@ -96,8 +97,8 @@ class Mobile
-
- ";
+
+ ";
// preload font
echo '';
diff --git a/include/constant.php b/include/constant.php
index 364bbdd3b..3724ccc14 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -93,11 +93,7 @@ define('BUTTONADD', "✚");
// If noalyss_version is not defined it is likely directly taken from
// git and so this variable is not set, this cause some issue
-if (! defined ("NOALYSS_VERSION"))
-{
- define("NOALYSS_VERSION",9999);
-}
-define('SVNINFO', NOALYSS_VERSION);
+define('NOALYSS_VERSION', 9114 );
if (!defined('DEBUGNOALYSS')) {
define("DEBUGNOALYSS", 0);
}
@@ -109,7 +105,7 @@ if (!defined('LOGINPUT')) {
if (!defined('DEBUGNOALYSS')) {
define('DEBUGNOALYSS', 0);
}
-$version_noalyss = SVNINFO;
+$version_noalyss = NOALYSS_VERSION;
// If you don't want to be notified of the update
if (!defined("SITE_UPDATE"))
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index cf1fc109d..597a62df5 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -336,16 +336,17 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
{
echo ' ';
}
- echo "
+ global $version_noalyss;
+ echo <<$title
-
-
-
-
-
- " .
- $p_script2 . "
- ";
+
+
+
+
+
+
+ $p_script2
+EOF;
// preload font
echo '';
echo '';
diff --git a/include/lib/function_javascript.php b/include/lib/function_javascript.php
index 55f88dfe0..c5478fa92 100644
--- a/include/lib/function_javascript.php
+++ b/include/lib/function_javascript.php
@@ -16,6 +16,7 @@ License: GPL
*/
function js_include($p_string)
{
+ global $version_noalyss;
static $ajs=array(); /* avoid to add twice the same script */
static $seq=0;
if ( in_array($p_string,$ajs)) return '';
@@ -24,7 +25,7 @@ function js_include($p_string)
if ( ! file_exists('js/'.$p_string))
alert("Erreur js/$p_string n existe pas");
- $script='';
+ $script='';
// debug
return $script;