aboutsummaryrefslogtreecommitdiffstats
path: root/mod/fbrowser.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
committerfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
commita4960360669daa0a0c842427185ce1ada3b4ab97 (patch)
tree53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/fbrowser.php
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip
local_user => local_channel
Diffstat (limited to 'mod/fbrowser.php')
-rw-r--r--mod/fbrowser.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/fbrowser.php b/mod/fbrowser.php
index 19bd77914..90b554edd 100644
--- a/mod/fbrowser.php
+++ b/mod/fbrowser.php
@@ -12,7 +12,7 @@ require_once('include/photo/photo_driver.php');
*/
function fbrowser_content($a){
- if (!local_user())
+ if (!local_channel())
killme();
if ($a->argc==1)
@@ -29,7 +29,7 @@ function fbrowser_content($a){
if ($a->argc==2){
$albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d ",
- intval(local_user())
+ intval(local_channel())
);
// anon functions only from 5.3.0... meglio tardi che mai..
function folder1($el){return array(bin2hex($el['album']),$el['album']);}
@@ -48,7 +48,7 @@ function fbrowser_content($a){
$r = q("SELECT `resource_id`, `id`, `filename`, type, min(`scale`) AS `hiq`,max(`scale`) AS `loq`, `description`
FROM `photo` WHERE `uid` = %d $sql_extra
GROUP BY `resource_id` $sql_extra2",
- intval(local_user())
+ intval(local_channel())
);
function files1($rr){
@@ -87,7 +87,7 @@ function fbrowser_content($a){
case "file":
if ($a->argc==2){
$files = q("SELECT id, filename, filetype FROM `attach` WHERE `uid` = %d ",
- intval(local_user())
+ intval(local_channel())
);
function files2($rr){ global $a;