Skip to content
Extraits de code Groupes Projets
Valider 9bbad0ce rédigé par Kevin XU's avatar Kevin XU
Parcourir les fichiers

bigger profile image

parent f5e91e1c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -25,7 +25,7 @@ require_once('requestsFunctions.php'); ...@@ -25,7 +25,7 @@ require_once('requestsFunctions.php');
if (this.readyState == 4 && this.status == 200) {// 4 = request finished and response is ready, 200 = "OK" if (this.readyState == 4 && this.status == 200) {// 4 = request finished and response is ready, 200 = "OK"
var tab = JSON.parse(this.responseText); var tab = JSON.parse(this.responseText);
//document.getElementById("h1").innerHTML = tab; document.getElementById("h1").innerHTML = tab;
var options = ""; var options = "";
for(var i = 0; i < tab.length; i++) { for(var i = 0; i < tab.length; i++) {
......
...@@ -65,3 +65,7 @@ function searchUser($keyword) { ...@@ -65,3 +65,7 @@ function searchUser($keyword) {
return $response; return $response;
} }
Aucun aperçu pour ce type de fichier
...@@ -19,7 +19,8 @@ function getUserNbFollowers($id) { ...@@ -19,7 +19,8 @@ function getUserNbFollowers($id) {
function getUserProfileImage($id) { function getUserProfileImage($id) {
$response = getUserById($id); $response = getUserById($id);
return $response->profile_image_url; $url = $response->profile_image_url;
return substr_replace($url,"bigger.jpg",strlen($url)-10);
} }
function getUserInfos($id) { function getUserInfos($id) {
...@@ -33,4 +34,3 @@ function getUserInfos($id) { ...@@ -33,4 +34,3 @@ function getUserInfos($id) {
} }
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter