aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-24 20:49:23 -0700
committerredmatrix <git@macgirvin.com>2016-05-24 20:49:23 -0700
commit80f2ba640ec528bd43db243122a69e765703b7c0 (patch)
treef1029b2b3143a501734bd49f00fbc95912044602 /include/photo
parentf9a295a23627cf272e14559b8a11e3780de43ea1 (diff)
downloadvolse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.tar.gz
volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.tar.bz2
volse-hubzilla-80f2ba640ec528bd43db243122a69e765703b7c0.zip
code cleanup
Diffstat (limited to 'include/photo')
-rw-r--r--include/photo/photo_driver.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index 3bea54fd4..e57a9165a 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -521,7 +521,7 @@ function guess_image_type($filename, $headers = '') {
logger('Photo: guess_image_type: '.$filename . ($headers?' from curl headers':''), LOGGER_DEBUG);
$type = null;
if ($headers) {
- $a = get_app();
+
$hdrs=array();
$h = explode("\n",$headers);
foreach ($h as $l) {
@@ -580,8 +580,6 @@ function guess_image_type($filename, $headers = '') {
function import_xchan_photo($photo,$xchan,$thing = false) {
- $a = get_app();
-
$flags = (($thing) ? PHOTO_THING : PHOTO_XCHAN);
$album = (($thing) ? 'Things' : 'Contact Photos');
@@ -703,8 +701,6 @@ function import_xchan_photo($photo,$xchan,$thing = false) {
function import_channel_photo($photo,$type,$aid,$uid) {
- $a = get_app();
-
logger('import_channel_photo: importing channel photo for ' . $uid, LOGGER_DEBUG);
$hash = photo_new_resource();