aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/TakeATour/main.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2014-04-21 16:09:17 +0000
committerflop25 <flop25@piwigo.org>2014-04-21 16:09:17 +0000
commit8374817cb3f99ade02747538ac8115df97eba35b (patch)
tree7ce2fb677c4032881c6434602035bb5f3d612dc9 /plugins/TakeATour/main.inc.php
parent97639b42bc5867f1969580dbcc84c1ff6192df39 (diff)
escape language value for js
git-svn-id: http://piwigo.org/svn/trunk@28243 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/TakeATour/main.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/TakeATour/main.inc.php b/plugins/TakeATour/main.inc.php
index a6402205c..fc54b88a3 100644
--- a/plugins/TakeATour/main.inc.php
+++ b/plugins/TakeATour/main.inc.php
@@ -26,7 +26,8 @@ elseif ( isset($_GET['tour_ended']) and defined('IN_ADMIN') and IN_ADMIN )
}
/** Setup the tour **/
-if (pwg_get_session_var('tour_to_launch') and isset($_GET['page']) and $_GET['page']=="plugin-TakeATour" )
+$version_=str_replace('.','_',PHPWG_VERSION);
+if (pwg_get_session_var('tour_to_launch')!=$version_ and isset($_GET['page']) and $_GET['page']=="plugin-TakeATour")
{
pwg_unset_session_var('tour_to_launch');
}