mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Adding deprecated notice to HtmlHelper::radio() this has been replaced with FormHelper::radio() since [5338]
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5378 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
9cd8a79ad9
commit
4ff21a6a08
2 changed files with 3 additions and 6 deletions
|
@ -647,7 +647,7 @@ class AuthComponent extends Object {
|
|||
} elseif (is_array($user) && isset($user[$this->userModel])) {
|
||||
$user = $user[$this->userModel];
|
||||
}
|
||||
|
||||
|
||||
if (is_array($user) && (isset($user[$this->fields['username']]) || isset($user[$this->userModel . '.' . $this->fields['username']]))) {
|
||||
$find = array();
|
||||
if (isset($user[$this->fields['username']]) && !empty($user[$this->fields['username']]) && !empty($user[$this->fields['password']])) {
|
||||
|
|
|
@ -395,13 +395,10 @@ class HtmlHelper extends AppHelper {
|
|||
/**
|
||||
* Creates a set of radio widgets.
|
||||
*
|
||||
* @param string $fieldName Name of a field, like this "Modelname/fieldname"
|
||||
* @param array $options Radio button options array
|
||||
* @param array $inbetween String that separates the radio buttons.
|
||||
* @param array $htmlAttributes Array of HTML attributes.
|
||||
* @return string
|
||||
* @deprecated
|
||||
*/
|
||||
function radio($fieldName, $options, $inbetween = null, $htmlAttributes = array()) {
|
||||
trigger_error(__('(HtmlHelper::radio) Deprecated: Use FormHelper::radio instead', true), E_USER_WARNING);
|
||||
|
||||
$this->setFormTag($fieldName);
|
||||
$value = isset($htmlAttributes['value']) ? $htmlAttributes['value'] : $this->value($fieldName);
|
||||
|
|
Loading…
Add table
Reference in a new issue