From: <gi...@us...> - 2016-07-22 18:35:35
|
Revision: 59248 http://sourceforge.net/p/tikiwiki/code/59248 Author: giograf Date: 2016-07-22 18:35:32 +0000 (Fri, 22 Jul 2016) Log Message: ----------- [FIX] The fix of the Plugin List Pages. Modified Paths: -------------- branches/15.x/lib/wiki-plugins/wikiplugin_listpages.php branches/15.x/templates/tiki-listpages_content.tpl branches/15.x/tiki-listpages.php Modified: branches/15.x/lib/wiki-plugins/wikiplugin_listpages.php =================================================================== --- branches/15.x/lib/wiki-plugins/wikiplugin_listpages.php 2016-07-22 15:05:41 UTC (rev 59247) +++ branches/15.x/lib/wiki-plugins/wikiplugin_listpages.php 2016-07-22 18:35:32 UTC (rev 59248) @@ -399,7 +399,8 @@ $listpages['data'][$i]['snippet'] = $tikilib->get_snippet($page['data'], $page['outputType'], ! empty($page['is_html']), '', $length, $start, $end); } } - $ret = $smarty->fetch('tiki-listpages_content.tpl'); + $smarty->assign('current_url', $_SERVER["PHP_SELF"]); + $ret = $smarty->fetch('tiki-listpages_content.tpl'); } return '~np~'.$ret.'~/np~'; Modified: branches/15.x/templates/tiki-listpages_content.tpl =================================================================== --- branches/15.x/templates/tiki-listpages_content.tpl 2016-07-22 15:05:41 UTC (rev 59247) +++ branches/15.x/templates/tiki-listpages_content.tpl 2016-07-22 18:35:32 UTC (rev 59248) @@ -31,7 +31,7 @@ {if isset($checkboxes_on) and $checkboxes_on eq 'y'} - <form name="checkboxes_on" method="post"> + <form name="checkboxes_on" method="post" action="/tiki-listpages.php"> {/if} {assign var='pagefound' value='n'} @@ -471,6 +471,7 @@ {/if} {if $checkboxes_on eq 'y'} + <input type="hidden" name="current_url" value="{$current_url}"> </form> {/if} Modified: branches/15.x/tiki-listpages.php =================================================================== --- branches/15.x/tiki-listpages.php 2016-07-22 15:05:41 UTC (rev 59247) +++ branches/15.x/tiki-listpages.php 2016-07-22 18:35:32 UTC (rev 59248) @@ -187,6 +187,9 @@ } break; } + if (isset($_POST["current_url"])) { + header("Location: " . $_POST["current_url"]); + } } //add tablesorter sorting and filtering This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |