Rename to singular
Rename and update references. Standards and a require_once.
This commit is contained in:
parent
2f0da29c75
commit
6e5471def3
22 changed files with 59 additions and 56 deletions
|
|
@ -674,10 +674,10 @@ function profiles_content(App $a) {
|
|||
array(t('No'), t('Yes')) //Off - On strings
|
||||
),
|
||||
|
||||
'$multi_profiles' => Features::isEnabled(local_user(), 'multi_profiles'),
|
||||
'$multi_profiles' => Feature::isEnabled(local_user(), 'multi_profiles'),
|
||||
'$form_security_token' => get_form_security_token("profile_edit"),
|
||||
'$form_security_token_photo' => get_form_security_token("profile_photo"),
|
||||
'$profile_clone_link' => ((Features::isEnabled(local_user(), 'multi_profiles')) ? 'profiles/clone/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_clone") : ""),
|
||||
'$profile_clone_link' => ((Feature::isEnabled(local_user(), 'multi_profiles')) ? 'profiles/clone/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_clone") : ""),
|
||||
'$profile_drop_link' => 'profiles/drop/' . $r[0]['id'] . '?t=' . get_form_security_token("profile_drop"),
|
||||
|
||||
'$profile_action' => t('Profile Actions'),
|
||||
|
|
@ -755,7 +755,7 @@ function profiles_content(App $a) {
|
|||
return $o;
|
||||
} else {
|
||||
// If we don't support multi profiles, don't display this list.
|
||||
if (!Features::isEnabled(local_user(), 'multi_profiles')) {
|
||||
if (!Feature::isEnabled(local_user(), 'multi_profiles')) {
|
||||
$r = q("SELECT * FROM `profile` WHERE `uid` = %d AND `is-default`=1",
|
||||
local_user()
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue