mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Refactoring Helper::setFormTag()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4660 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c20a8c80f3
commit
7cee084212
1 changed files with 1 additions and 6 deletions
|
@ -322,12 +322,7 @@ class Helper extends Overloadable {
|
|||
*/
|
||||
function setFormTag($tagValue) {
|
||||
$view =& ClassRegistry::getObject('view');
|
||||
|
||||
if(strpos($tagValue, '.') !== false) {
|
||||
$parts = explode(".", $tagValue);
|
||||
} else {
|
||||
$parts = explode("/", $tagValue);
|
||||
}
|
||||
$parts = preg_split('/\/|\./', $tagValue);
|
||||
|
||||
if (count($parts) == 1) {
|
||||
$view->field = $parts[0];
|
||||
|
|
Loading…
Add table
Reference in a new issue