Deprecate the "wall uploads" photo album. Photo uploads (from any source) with no album specified will go now into an album based on YYYY-MM.
This commit is contained in:
parent
ad3b4da3ff
commit
76eb0a7e56
@ -31,7 +31,7 @@ function photo_upload($channel, $observer, $args) {
|
||||
if($newalbum)
|
||||
$album = $newalbum;
|
||||
else
|
||||
$album = datetime_convert('UTC',date_default_timezone_get(),'now', 'Y');
|
||||
$album = datetime_convert('UTC',date_default_timezone_get(),'now', 'Y-m');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -32,8 +32,7 @@ function wall_upload_post(&$a) {
|
||||
|
||||
$observer = $a->get_observer();
|
||||
|
||||
$args = array( 'source' => 'editor', 'album' => t('Wall Photos'),
|
||||
'not_visible' => 1, 'contact_allow' => array($channel['channel_hash']));
|
||||
$args = array( 'source' => 'editor', 'not_visible' => 1, 'contact_allow' => array($channel['channel_hash']));
|
||||
|
||||
$ret = photo_upload($channel,$observer,$args);
|
||||
|
||||
|
Reference in New Issue
Block a user