From cf8b032c14dfde3e3b9d0ae552d44f289dec3ff2 Mon Sep 17 00:00:00 2001 From: flop25 Date: Wed, 16 Apr 2014 21:17:10 +0000 Subject: use GET to start a tour also git-svn-id: http://piwigo.org/svn/trunk@28208 68402e56-0260-453c-a942-63ccdbb3a9ee --- plugins/TakeATour/main.inc.php | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) (limited to 'plugins/TakeATour/main.inc.php') diff --git a/plugins/TakeATour/main.inc.php b/plugins/TakeATour/main.inc.php index 46ed9e5d7..a6402205c 100644 --- a/plugins/TakeATour/main.inc.php +++ b/plugins/TakeATour/main.inc.php @@ -16,7 +16,7 @@ if (!defined('PHPWG_ROOT_PATH')) if ( isset($_REQUEST['submited_tour']) and defined('IN_ADMIN') and IN_ADMIN ) { check_pwg_token(); - pwg_set_session_var('tour_to_launch', $_POST['submited_tour']); + pwg_set_session_var('tour_to_launch', $_REQUEST['submited_tour']); global $TAT_restart; $TAT_restart=true; } @@ -93,32 +93,9 @@ function TAT_no_photo_yet() } function TAT_no_photo_yet_prefilter($content, &$smarty) { - $search = '
{\'I want to add photos\'|@translate}
'; - $replacement = '
- - - -
+ $replacement = '
{\'I want to discover my gallery and add photos\'|@translate}
{\'I want to add photos\'|@translate}
'; - $content=str_replace($search, $replacement, $content); - $search = ''; - $replacement = ' -form input[type="submit"] { - font-size: 25px; - letter-spacing: 2px; - margin: 0 5px; - padding: 20px; - border:none; - background-color:#666666; - color:#fff; - cursor:pointer; -} -form input[type="submit"]:hover { - background-color:#ff7700; - color:white; -} -'; return(str_replace($search, $replacement, $content)); } -- cgit v1.2.3