Skip to content

Commit

Permalink
Fix template types in screen_display
Browse files Browse the repository at this point in the history
  • Loading branch information
NoudL committed Jun 10, 2022
1 parent 0e43c1c commit 97ecb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_code/php/display_library.php
Expand Up @@ -541,7 +541,7 @@ function get_files_in_this_folder($folder_id, $tree_id, $sort_type, $copy_only,
$shared = 'shared';
}

$item->type = ($newtype == "") ? strtolower($row['parent_template']) : strtolower($row['parent_template']) . "_" . $shared;
$item->type = ($shared == "") ? strtolower($row['parent_template']) : strtolower($row['parent_template']) . "_" . $shared;
$item->xot_type = "file";

$item->published = $row['access_to_whom'] != 'Private' || $row['tsugi_published'] == 1;
Expand Down

0 comments on commit 97ecb29

Please sign in to comment.