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
|
@ -424,7 +424,7 @@ function photos_post(App $a) {
|
|||
);
|
||||
if (DBM::is_result($r)) {
|
||||
$ph = new Photo($r[0]['data'], $r[0]['type']);
|
||||
if ($ph->is_valid()) {
|
||||
if ($ph->isValid()) {
|
||||
$rotate_deg = ( (intval($_POST['rotate']) == 1) ? 270 : 90 );
|
||||
$ph->rotate($rotate_deg);
|
||||
|
||||
|
@ -810,7 +810,7 @@ function photos_post(App $a) {
|
|||
$type = $_FILES['userfile']['type'];
|
||||
}
|
||||
if ($type == "") {
|
||||
$type = guess_image_type($filename);
|
||||
$type = Photo::guessImageType($filename);
|
||||
}
|
||||
|
||||
logger('photos: upload: received file: ' . $filename . ' as ' . $src . ' ('. $type . ') ' . $filesize . ' bytes', LOGGER_DEBUG);
|
||||
|
@ -839,7 +839,7 @@ function photos_post(App $a) {
|
|||
|
||||
$ph = new Photo($imagedata, $type);
|
||||
|
||||
if (! $ph->is_valid()) {
|
||||
if (! $ph->isValid()) {
|
||||
logger('mod/photos.php: photos_post(): unable to process image' , LOGGER_DEBUG);
|
||||
notice( t('Unable to process image.') . EOL );
|
||||
@unlink($src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue