aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2014-04-14 20:58:02 +0000
committerflop25 <flop25@piwigo.org>2014-04-14 20:58:02 +0000
commit8f9d4416e5b1dcded982cc3fc7171074004ac22e (patch)
tree0e3e68d1588ef7c5db15e422b5b453800cf24c89
parent511138399b9a14909a0857db135ad5f747273c82 (diff)
allow TakeATour to exist in the public part
typo fix in config.inc.php git-svn-id: http://piwigo.org/svn/trunk@28180 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--include/config_default.inc.php2
-rw-r--r--plugins/TakeATour/main.inc.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php
index cd7c0156a..88da22213 100644
--- a/include/config_default.inc.php
+++ b/include/config_default.inc.php
@@ -439,7 +439,7 @@ $conf['debug_mail'] = false;
$conf['die_on_sql_error'] = true;
// if true, some language strings are replaced during template compilation
-// (insted of template output). this results in better performance. however
+// (instead of template output). this results in better performance. however
// any change in the language file will not be propagated until you purge
// the compiled templates from the admin / maintenance menu
$conf['compiled_template_cache_language'] = false;
diff --git a/plugins/TakeATour/main.inc.php b/plugins/TakeATour/main.inc.php
index 46466c4c3..2f179257d 100644
--- a/plugins/TakeATour/main.inc.php
+++ b/plugins/TakeATour/main.inc.php
@@ -26,11 +26,11 @@ elseif ( isset($_GET['tour_ended']) and in_array($_GET['tour_ended'], $avalaible
pwg_unset_session_var('tour_to_launch');
}
-if (pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN and isset($_GET['page']) and $_GET['page']=="plugin-TakeATour" )
+if (pwg_get_session_var('tour_to_launch') and isset($_GET['page']) and $_GET['page']=="plugin-TakeATour" )
{
pwg_unset_session_var('tour_to_launch');
}
-elseif ( pwg_get_session_var('tour_to_launch') and defined('IN_ADMIN') and IN_ADMIN)
+elseif ( pwg_get_session_var('tour_to_launch') )
{
add_event_handler('init', 'TAT_add_js_css');
include('tours/'.pwg_get_session_var('tour_to_launch').'/config.inc.php');