@@ -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 | } |