fix issue with user icons not showing, a=chris
fix issue with user icons not showing, a=chris
diff --git a/src/controllers/ResourceController.php b/src/controllers/ResourceController.php
index c532d9cbd..fa3b3766b 100644
--- a/src/controllers/ResourceController.php
+++ b/src/controllers/ResourceController.php
@@ -156,6 +156,7 @@ class ResourceController extends Controller implements CrawlConstants
$folder = $this->clean($_REQUEST['f'], 'string');
$base_dir = C\APP_DIR . "/$folder";
$add_to_path = false;
+ $is_group_item = false;
if (isset($_REQUEST['s'])&& !isset($_REQUEST['g']) &&
$folder == "resources") {
// handle sub-folders of resource (must be numeric)
@@ -178,10 +179,14 @@ class ResourceController extends Controller implements CrawlConstants
$prefix_folder = substr($base_subfolder, 0, 3);
$subfolder = $prefix_word . $base_subfolder;
$add_to_path = true;
+ $is_group_item = true;
}
if ($add_to_path) {
- $redirect_dir = "$base_dir/$prefix_folder/$base_subfolder";
- if (file_exists($redirect_dir . "/redirect.txt")) {
+ if ($is_group_item) {
+ $redirect_dir = "$base_dir/$prefix_folder/$base_subfolder";
+ }
+ if ($is_group_item &&
+ file_exists($redirect_dir . "/redirect.txt")) {
$tmp_path = file_get_contents($redirect_dir . "/redirect.txt");
if (is_dir($tmp_path)) {
if($subfolder == $base_subfolder) {