Minor - format code, fix typo

pull/2829/head
Julio Montoya 7 years ago
parent 60a61141e7
commit a728ad2997
  1. 4
      main/forum/forumfunction.inc.php
  2. 2
      main/template/default/social/home.tpl

@ -6807,7 +6807,7 @@ function reportAvailable()
/**
* @return array
*/
function getReportRecepients()
function getReportRecipients()
{
$extraFieldValue = new ExtraFieldValue('course');
$value = $extraFieldValue->get_values_by_handler_and_field_variable(
@ -6870,7 +6870,7 @@ function reportPost($postId, $forumInfo, $threadInfo)
$currentUser = api_get_user_info();
if (!empty($postData)) {
$users = getReportRecepients();
$users = getReportRecipients();
if (!empty($users)) {
$url = api_get_path(WEB_CODE_PATH).
'forum/viewthread.php?forum='.$threadInfo['forum_id'].'&thread='.$threadInfo['thread_id'].'&'.api_get_cidreq().'&post_id='.$postId.'#post_id_'.$postId;

@ -67,7 +67,7 @@
<div class="geolocalization">
<a class="btn btn-maps" id="profile-tab" href="{{ _p.web }}main/social/map.php" >
{{ "geolocalization.png"|img(32) }}
{{ 'ByGeolocalization' | get_lang }}
{{ 'SearchUserByGeolocalization' | get_lang }}
</a>
</div>
{% endif %}

Loading…
Cancel
Save