mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Remove unused code in mod/
- Remove commented code - Remove unused/immediately overwritten variables - Remove extraneous parameters - Remove unreachable code
This commit is contained in:
parent
4a95ca280d
commit
dbc6eb5422
34 changed files with 32 additions and 173 deletions
|
@ -28,10 +28,6 @@ function fbrowser_content(App $a)
|
|||
}
|
||||
|
||||
$template_file = "filebrowser.tpl";
|
||||
$mode = "";
|
||||
if (!empty($_GET['mode'])) {
|
||||
$mode = "?mode=".$_GET['mode'];
|
||||
}
|
||||
|
||||
switch ($a->argv[1]) {
|
||||
case "image":
|
||||
|
@ -55,12 +51,11 @@ function fbrowser_content(App $a)
|
|||
$albums = array_map("_map_folder1", $albums);
|
||||
}
|
||||
|
||||
$album = "";
|
||||
if ($a->argc==3) {
|
||||
if ($a->argc == 3) {
|
||||
$album = hex2bin($a->argv[2]);
|
||||
$sql_extra = sprintf("AND `album` = '%s' ", DBA::escape($album));
|
||||
$sql_extra2 = "";
|
||||
$path[]=[$a->argv[2], $album];
|
||||
$path[] = [$a->argv[2], $album];
|
||||
}
|
||||
|
||||
$r = q("SELECT `resource-id`, ANY_VALUE(`id`) AS `id`, ANY_VALUE(`filename`) AS `filename`, ANY_VALUE(`type`) AS `type`,
|
||||
|
@ -118,8 +113,7 @@ function fbrowser_content(App $a)
|
|||
|
||||
function _map_files2($rr)
|
||||
{
|
||||
$a = \get_app();
|
||||
list($m1,$m2) = explode("/", $rr['filetype']);
|
||||
list($m1, $m2) = explode("/", $rr['filetype']);
|
||||
$filetype = ( (file_exists("images/icons/$m1.png"))?$m1:"zip");
|
||||
$filename_e = $rr['filename'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue