mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 11:43:01 +02:00
(cp 03a8329) adding pwg_token on permalink & cat_options
and therefor solving issue:721
This commit is contained in:
@@ -38,13 +38,12 @@ check_status(ACCESS_ADMINISTRATOR);
|
||||
// | modification registration |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
// print '<pre>';
|
||||
// print_r($_POST);
|
||||
// print '</pre>';
|
||||
|
||||
if (isset($_POST['falsify'])
|
||||
and isset($_POST['cat_true'])
|
||||
and count($_POST['cat_true']) > 0)
|
||||
{
|
||||
check_pwg_token();
|
||||
switch ($_GET['section'])
|
||||
{
|
||||
case 'comments' :
|
||||
@@ -246,6 +245,7 @@ SELECT DISTINCT id,name,uppercats,global_rank
|
||||
}
|
||||
display_select_cat_wrapper($query_true,array(),'category_option_true');
|
||||
display_select_cat_wrapper($query_false,array(),'category_option_false');
|
||||
$template->assign('PWG_TOKEN',get_pwg_token());
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | sending html code |
|
||||
|
||||
Reference in New Issue
Block a user