Skip to content

Commit

Permalink
Capitalise first letter of each word on type=translate. Makes it look…
Browse files Browse the repository at this point in the history
… more professional
  • Loading branch information
Idealcoder committed Aug 9, 2013
1 parent 42feb1e commit 490e7d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@
foreach ($images["images"] as &$value) {
$i++;
$tokens = explode('/', $value);
$stmt->bindValue($i,$tokens[sizeof($tokens)-1]);
$stmt->bindValue($i,($tokens[sizeof($tokens)-1]));
}
$i++;
$stmt->bindValue($i,$languageto["id"]);
$stmt->execute();

$results = array();
while ($row = $stmt->fetch()) {
$results["results"][]=$row["name"];
$results["results"][]=ucwords($row["name"]);
}

echo json_encode($results);
Expand Down

0 comments on commit 490e7d3

Please sign in to comment.