logger_debug was used as string instead of constant
This commit is contained in:
parent
5910fbf420
commit
a97cb88b65
2 changed files with 6 additions and 6 deletions
2
boot.php
2
boot.php
|
@ -9,7 +9,7 @@ require_once('include/nav.php');
|
||||||
require_once('include/cache.php');
|
require_once('include/cache.php');
|
||||||
|
|
||||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDICA_VERSION', '2.3.1258' );
|
define ( 'FRIENDICA_VERSION', '2.3.1259' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1123 );
|
define ( 'DB_UPDATE_VERSION', 1123 );
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ EOT;
|
||||||
|
|
||||||
function photos_post(&$a) {
|
function photos_post(&$a) {
|
||||||
|
|
||||||
logger('mod-photos: photos_post: begin' , 'LOGGER_DEBUG');
|
logger('mod-photos: photos_post: begin' , LOGGER_DEBUG);
|
||||||
|
|
||||||
|
|
||||||
logger('mod_photos: REQUEST ' . print_r($_REQUEST,true), LOGGER_DATA);
|
logger('mod_photos: REQUEST ' . print_r($_REQUEST,true), LOGGER_DATA);
|
||||||
|
@ -571,7 +571,7 @@ function photos_post(&$a) {
|
||||||
$album = notags(trim($_REQUEST['album']));
|
$album = notags(trim($_REQUEST['album']));
|
||||||
$newalbum = notags(trim($_REQUEST['newalbum']));
|
$newalbum = notags(trim($_REQUEST['newalbum']));
|
||||||
|
|
||||||
logger('mod/photos.php: photos_post(): album= ' . $album . ' newalbum= ' . $newalbum , 'LOGGER_DEBUG');
|
logger('mod/photos.php: photos_post(): album= ' . $album . ' newalbum= ' . $newalbum , LOGGER_DEBUG);
|
||||||
|
|
||||||
if(! strlen($album)) {
|
if(! strlen($album)) {
|
||||||
if(strlen($newalbum))
|
if(strlen($newalbum))
|
||||||
|
@ -643,13 +643,13 @@ function photos_post(&$a) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger('mod/photos.php: photos_post(): loading the contents of ' . $src , 'LOGGER_DEBUG');
|
logger('mod/photos.php: photos_post(): loading the contents of ' . $src , LOGGER_DEBUG);
|
||||||
|
|
||||||
$imagedata = @file_get_contents($src);
|
$imagedata = @file_get_contents($src);
|
||||||
$ph = new Photo($imagedata);
|
$ph = new Photo($imagedata);
|
||||||
|
|
||||||
if(! $ph->is_valid()) {
|
if(! $ph->is_valid()) {
|
||||||
logger('mod/photos.php: photos_post(): unable to process image' , 'LOGGER_DEBUG');
|
logger('mod/photos.php: photos_post(): unable to process image' , LOGGER_DEBUG);
|
||||||
notice( t('Unable to process image.') . EOL );
|
notice( t('Unable to process image.') . EOL );
|
||||||
@unlink($src);
|
@unlink($src);
|
||||||
$foo = 0;
|
$foo = 0;
|
||||||
|
@ -669,7 +669,7 @@ function photos_post(&$a) {
|
||||||
$r = $ph->store($page_owner_uid, $visitor, $photo_hash, $filename, $album, 0 , 0, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny);
|
$r = $ph->store($page_owner_uid, $visitor, $photo_hash, $filename, $album, 0 , 0, $str_contact_allow, $str_group_allow, $str_contact_deny, $str_group_deny);
|
||||||
|
|
||||||
if(! $r) {
|
if(! $r) {
|
||||||
logger('mod/photos.php: photos_post(): image store failed' , 'LOGGER_DEBUG');
|
logger('mod/photos.php: photos_post(): image store failed' , LOGGER_DEBUG);
|
||||||
notice( t('Image upload failed.') . EOL );
|
notice( t('Image upload failed.') . EOL );
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue