Function names
Update function names and corresponding function calls
This commit is contained in:
parent
54827e7fed
commit
0091d318e5
23 changed files with 668 additions and 535 deletions
|
@ -162,7 +162,7 @@ function wall_upload_post(App $a, $desktopmode = true) {
|
|||
}
|
||||
|
||||
if ($filetype=="") {
|
||||
$filetype=guess_image_type($filename);
|
||||
$filetype=Photo::guessImageType($filename);
|
||||
}
|
||||
|
||||
// If there is a temp name, then do a manual check
|
||||
|
@ -192,7 +192,7 @@ function wall_upload_post(App $a, $desktopmode = true) {
|
|||
$imagedata = @file_get_contents($src);
|
||||
$ph = new Photo($imagedata, $filetype);
|
||||
|
||||
if (! $ph->is_valid()) {
|
||||
if (! $ph->isValid()) {
|
||||
$msg = t('Unable to process image.');
|
||||
if ($r_json) {
|
||||
echo json_encode(array('error'=>$msg));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue