Renaming functions + moving functions from security to Model/Item and BaseModule + fix multiline comments
This commit is contained in:
parent
ce2b1f5715
commit
f3fc1f36ca
29 changed files with 233 additions and 222 deletions
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
|
@ -31,7 +32,7 @@ function profile_photo_post(App $a)
|
|||
return;
|
||||
}
|
||||
|
||||
Security::check_form_security_token_redirectOnErr('/profile_photo', 'profile_photo');
|
||||
BaseModule::checkFormSecurityTokenRedirectOnError('/profile_photo', 'profile_photo');
|
||||
|
||||
if (!empty($_POST['cropfinal']) && $_POST['cropfinal'] == 1) {
|
||||
|
||||
|
@ -247,7 +248,7 @@ function profile_photo_content(App $a)
|
|||
'$title' => L10n::t('Upload Profile Photo'),
|
||||
'$submit' => L10n::t('Upload'),
|
||||
'$profiles' => $profiles,
|
||||
'$form_security_token' => Security::get_form_security_token("profile_photo"),
|
||||
'$form_security_token' => BaseModule::getFormSecurityToken("profile_photo"),
|
||||
'$select' => sprintf('%s %s', L10n::t('or'),
|
||||
($newuser) ? '<a href="' . System::baseUrl() . '">' . L10n::t('skip this step') . '</a>' : '<a href="' . System::baseUrl() . '/photos/' . $a->user['nickname'] . '">' . L10n::t('select a photo from your photo albums') . '</a>')
|
||||
]);
|
||||
|
@ -264,7 +265,7 @@ function profile_photo_content(App $a)
|
|||
'$image_url' => System::baseUrl() . '/photo/' . $filename,
|
||||
'$title' => L10n::t('Crop Image'),
|
||||
'$desc' => L10n::t('Please adjust the image cropping for optimum viewing.'),
|
||||
'$form_security_token' => Security::get_form_security_token("profile_photo"),
|
||||
'$form_security_token' => BaseModule::getFormSecurityToken("profile_photo"),
|
||||
'$done' => L10n::t('Done Editing')
|
||||
]);
|
||||
return $o;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue