mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
issue 767 if want remove error_return_url tag, add 'no-error-return-url="true"'attribute to form element
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9914 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0d36d7450e
commit
6a978a570d
2 changed files with 6 additions and 2 deletions
|
|
@ -250,6 +250,10 @@ class TemplateHandler {
|
||||||
preg_match('/<input[^>]*name="error_return_url"[^>]*>/is', $matches[2], $m3);
|
preg_match('/<input[^>]*name="error_return_url"[^>]*>/is', $matches[2], $m3);
|
||||||
if(!$m3[0]) $matches[2] = '<input type="hidden" name="error_return_url" value="<?php echo getRequestUriByServerEnviroment() ?>" />'.$matches[2];
|
if(!$m3[0]) $matches[2] = '<input type="hidden" name="error_return_url" value="<?php echo getRequestUriByServerEnviroment() ?>" />'.$matches[2];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$matches[1] = preg_replace('/no-error-return-url="true"/i', '', $matches[1]);
|
||||||
|
}
|
||||||
|
|
||||||
$matches[0] = '';
|
$matches[0] = '';
|
||||||
return implode($matches);
|
return implode($matches);
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<!--%import("is.js")-->
|
<!--%import("is.js")-->
|
||||||
|
|
||||||
<div id="spot">
|
<div id="spot">
|
||||||
<form action="{getUrl()}" method="post" class="search" id="fo_is">
|
<form action="{getUrl()}" method="post" class="search" id="fo_is" no-error-return-url="true" >
|
||||||
<input type="hidden" name="mid" value="{$mid}" />
|
<input type="hidden" name="mid" value="{$mid}" />
|
||||||
<input type="hidden" name="act" value="IS" />
|
<input type="hidden" name="act" value="IS" />
|
||||||
<input type="hidden" name="where" value="{$where}" />
|
<input type="hidden" name="where" value="{$where}" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue