@@ -46,11 +46,11 @@ |
||
46 | 46 | <?php renderDocumentBreadcrumb($path) ?> |
47 | 47 | </tr> |
48 | 48 | <?php |
49 | - $parentPath = substr($path, 0, strrpos( $path, '/')); |
|
50 | - if ($path !== '/' && substr_count($path, '/') === 1) { |
|
51 | - $parentPath = '/'; |
|
52 | - } |
|
53 | - if (!empty($parentPath)) : ?> |
|
49 | + $parentPath = substr($path, 0, strrpos( $path, '/')); |
|
50 | + if ($path !== '/' && substr_count($path, '/') === 1) { |
|
51 | + $parentPath = '/'; |
|
52 | + } |
|
53 | + if (!empty($parentPath)) : ?> |
|
54 | 54 | <tr> |
55 | 55 | <td class="icon" title="folder"> |
56 | 56 | <i class="fa fa-folder-o"></i> |
@@ -46,7 +46,7 @@ |
||
46 | 46 | <?php renderDocumentBreadcrumb($path) ?> |
47 | 47 | </tr> |
48 | 48 | <?php |
49 | - $parentPath = substr($path, 0, strrpos( $path, '/')); |
|
49 | + $parentPath = substr($path, 0, strrpos($path, '/')); |
|
50 | 50 | if ($path !== '/' && substr_count($path, '/') === 1) { |
51 | 51 | $parentPath = '/'; |
52 | 52 | } |
@@ -20,7 +20,8 @@ discard block |
||
20 | 20 | Search index is no longer in sync with documents. |
21 | 21 | <a href="<?= $request::$subfolders ?><?= $cmsPrefix ?>/search/update-index?returnUrl=<?= urlencode($request::$subfolders . $cmsPrefix . '/documents') ?>" title="Update Index">Update Index</a> |
22 | 22 | </div> |
23 | - <?php else : ?> |
|
23 | + <?php else { |
|
24 | + : ?> |
|
24 | 25 | <div class="message valid"> |
25 | 26 | <i class="fa fa-check"></i> |
26 | 27 | Search index is in sync with documents. |
@@ -47,6 +48,7 @@ discard block |
||
47 | 48 | </tr> |
48 | 49 | <?php |
49 | 50 | $parentPath = substr($path, 0, strrpos( $path, '/')); |
51 | +} |
|
50 | 52 | if ($path !== '/' && substr_count($path, '/') === 1) { |
51 | 53 | $parentPath = '/'; |
52 | 54 | } |