lib/Cake/Routing/Route/RedirectRoute.php 1 location
|
@@ 83-89 (lines=7) @@
|
80 |
|
} |
81 |
|
if (isset($this->options['persist']) && is_array($redirect)) { |
82 |
|
$redirect += array('named' => $params['named'], 'pass' => $params['pass'], 'url' => array()); |
83 |
|
if (is_array($this->options['persist'])) { |
84 |
|
foreach ($this->options['persist'] as $elem) { |
85 |
|
if (isset($params[$elem])) { |
86 |
|
$redirect[$elem] = $params[$elem]; |
87 |
|
} |
88 |
|
} |
89 |
|
} |
90 |
|
$redirect = Router::reverse($redirect); |
91 |
|
} |
92 |
|
$status = 301; |
lib/Cake/View/Helper/FormHelper.php 1 location
|
@@ 1177-1181 (lines=5) @@
|
1174 |
|
'integer' => 'number' |
1175 |
|
); |
1176 |
|
|
1177 |
|
if (isset($this->map[$type])) { |
1178 |
|
$options['type'] = $this->map[$type]; |
1179 |
|
} elseif (isset($map[$type])) { |
1180 |
|
$options['type'] = $map[$type]; |
1181 |
|
} |
1182 |
|
if ($fieldKey === $primaryKey) { |
1183 |
|
$options['type'] = 'hidden'; |
1184 |
|
} |