From: Jonny Tischbein Date: Fri, 19 Oct 2018 08:03:52 +0000 (+0200) Subject: update function names in logger and comments X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cafd5ca7819d90d38d06e84fcf0cbb2951956223;p=friendica.git update function names in logger and comments --- diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 1e0687c654..5fdff41e8c 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -188,7 +188,7 @@ function profile_photo_content(App $a) $imagecrop = []; if (isset($a->argv[1]) && $a->argv[1] == 'use' && $a->argc >= 3) { - // check_form_security_token_redirectOnErr('/profile_photo', 'profile_photo'); + // BaseModule::checkFormSecurityTokenRedirectOnError('/profile_photo', 'profile_photo'); $resource_id = $a->argv[2]; //die(":".local_user()); diff --git a/mod/videos.php b/mod/videos.php index 54451a74b4..b66a7cbcda 100644 --- a/mod/videos.php +++ b/mod/videos.php @@ -60,7 +60,7 @@ function videos_init(App $a) ]); /// @TODO Old-lost code? - /*$sql_extra = permissions_sql($a->data['user']['uid']); + /*$sql_extra = Security::getPermissionsSQLByUserId($a->data['user']['uid']); $albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d $sql_extra order by created desc", intval($a->data['user']['uid']) diff --git a/src/BaseModule.php b/src/BaseModule.php index 0f6fbd785b..e77b1a1491 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -135,9 +135,9 @@ abstract class BaseModule extends BaseObject { if (!self::checkFormSecurityToken($typename, $formname)) { $a = get_app(); - logger('check_form_security_token failed: user ' . $a->user['guid'] . ' - form element ' . $typename); - logger('check_form_security_token failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA); - notice(check_form_security_std_err_msg()); + logger('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename); + logger('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA); + notice(self::getFormSecurityStandardErrorMessage()); goaway(System::baseUrl() . $err_redirect); } } @@ -146,8 +146,8 @@ abstract class BaseModule extends BaseObject { if (!self::checkFormSecurityToken($typename, $formname)) { $a = get_app(); - logger('check_form_security_token failed: user ' . $a->user['guid'] . ' - form element ' . $typename); - logger('check_form_security_token failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA); + logger('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename); + logger('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA); header('HTTP/1.1 403 Forbidden'); killme(); }