aboutsummaryrefslogtreecommitdiffstats
path: root/mod/fbrowser.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
committerredmatrix <git@macgirvin.com>2016-03-31 16:06:03 -0700
commit9abd95fad3784a10fc48bc40f9b8a75d7d74edda (patch)
tree3cf2eec6a29f384b80a8c607aa97172b84e37e62 /mod/fbrowser.php
parent256c228efd249f2ce93405db8e36f52030aa4876 (diff)
downloadvolse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.gz
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.tar.bz2
volse-hubzilla-9abd95fad3784a10fc48bc40f9b8a75d7d74edda.zip
static App
Diffstat (limited to 'mod/fbrowser.php')
-rw-r--r--mod/fbrowser.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/mod/fbrowser.php b/mod/fbrowser.php
index 6ce1292c8..96e0fe953 100644
--- a/mod/fbrowser.php
+++ b/mod/fbrowser.php
@@ -15,19 +15,19 @@ function fbrowser_content($a){
if (!local_channel())
killme();
- if ($a->argc==1)
+ if (App::$argc==1)
killme();
- //echo "<pre>"; var_dump($a->argv); killme();
+ //echo "<pre>"; var_dump(App::$argv); killme();
- switch($a->argv[1]){
+ switch(App::$argv[1]){
case "image":
$path = array( array(z_root()."/fbrowser/image/", t("Photos")));
$albums = false;
$sql_extra = "";
$sql_extra2 = " ORDER BY created DESC LIMIT 0, 10";
- if ($a->argc==2){
+ if (App::$argc==2){
$albums = q("SELECT distinct(`album`) AS `album` FROM `photo` WHERE `uid` = %d ",
intval(local_channel())
);
@@ -38,11 +38,11 @@ function fbrowser_content($a){
}
$album = "";
- if ($a->argc==3){
- $album = hex2bin($a->argv[2]);
+ if (App::$argc==3){
+ $album = hex2bin(App::$argv[2]);
$sql_extra = sprintf("AND `album` = '%s' ",dbesc($album));
$sql_extra2 = "";
- $path[]=array(z_root()."/fbrowser/image/".$a->argv[2]."/", $album);
+ $path[]=array(z_root()."/fbrowser/image/".App::$argv[2]."/", $album);
}
$r = q("SELECT `resource_id`, `id`, `filename`, type, min(`scale`) AS `hiq`,max(`scale`) AS `loq`, `description`
@@ -80,7 +80,7 @@ function fbrowser_content($a){
break;
case "file":
- if ($a->argc==2){
+ if (App::$argc==2){
$files = q("SELECT id, filename, filetype FROM `attach` WHERE `uid` = %d ",
intval(local_channel())
);
@@ -89,7 +89,7 @@ function fbrowser_content($a){
list($m1,$m2) = explode("/",$rr['filetype']);
$filetype = ( (file_exists("images/icons/$m1.png"))?$m1:"zip");
- if($a->get_template_engine() === 'internal') {
+ if(App::get_template_engine() === 'internal') {
$filename_e = template_escape($rr['filename']);
}
else {