Julio Montoya преди 14 години
родител
ревизия
4d97af9b84
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      main/inc/lib/internationalization.lib.php
  2. 2 2
      main/social/profile.php

+ 1 - 1
main/inc/lib/internationalization.lib.php

@@ -802,7 +802,7 @@ function date_to_str_ago($date) {
 /**
  * Converts a date to the right timezone and localizes it in the format given as an argument
  * @param mixed The time to be converted
- * @param mixed Format to be used
+ * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
  * @param string Timezone to be converted from. If null, UTC will be assumed.
  * @return string Converted and localized date
  *

+ 2 - 2
main/social/profile.php

@@ -25,7 +25,7 @@ $this_section = SECTION_SOCIAL;
 if (isset($_GET['u'])) {
 	$user_id 	= (int) Database::escape_string($_GET['u']);
 	if (api_is_anonymous($user_id, true)) {
-	    api_not_allowed();
+	    api_not_allowed(true);
 	}
 	// It's me!
 	if (api_get_user_id() != $user_id) {
@@ -33,7 +33,7 @@ if (isset($_GET['u'])) {
 		$show_full_profile = false;
 		if (!$user_info) {
 			// user does no exist !!
-			api_not_allowed();
+			api_not_allowed(true);
 		} else {
 			//checking the relationship between me and my friend
 			$my_status= SocialManager::get_relation_between_contacts(api_get_user_id(), $user_id);