aboutsummaryrefslogtreecommitdiff
path: root/app/views/files
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/files')
-rw-r--r--app/views/files/_fileref_tr.php2
-rw-r--r--app/views/files/_folder_tr.php2
-rw-r--r--app/views/files/flat.php2
-rw-r--r--app/views/files/index.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/views/files/_fileref_tr.php b/app/views/files/_fileref_tr.php
index f282f79..fc486ae 100644
--- a/app/views/files/_fileref_tr.php
+++ b/app/views/files/_fileref_tr.php
@@ -75,7 +75,7 @@ if ($file->isDownloadable($GLOBALS['user']->id)) {
data-sort-value="<?= htmlReady($file->getAdditionalColumnOrderWeigh($index)) ?>">
<? $content = $file->getContentForAdditionalColumn($index) ?>
<? if ($content) : ?>
- <?= is_a($content, "Flexi_Template") ? $content->render() : $content ?>
+ <?= $content instanceof Flexi\Template ? $content->render() : $content ?>
<? endif ?>
</td>
<? endforeach ?>
diff --git a/app/views/files/_folder_tr.php b/app/views/files/_folder_tr.php
index 09cd295..c3f77f6 100644
--- a/app/views/files/_folder_tr.php
+++ b/app/views/files/_folder_tr.php
@@ -61,7 +61,7 @@ if ($folder->isReadable($GLOBALS['user']->id)) {
data-sort-value="<?= htmlReady($folder->getAdditionalColumnOrderWeigh($index)) ?>">
<? $content = $folder->getContentForAdditionalColumn($index) ?>
<? if ($content) : ?>
- <?= is_a($content, "Flexi_Template") ? $content->render() : $content ?>
+ <?= $content instanceof Flexi\Template ? $content->render() : $content ?>
<? endif ?>
</td>
<? endforeach ?>
diff --git a/app/views/files/flat.php b/app/views/files/flat.php
index a7d0c93..1440117 100644
--- a/app/views/files/flat.php
+++ b/app/views/files/flat.php
@@ -13,7 +13,7 @@ $vue_topFolder = [
'description' => $topFolder->getDescriptionTemplate(),
'additionalColumns' => $topFolder->getAdditionalColumns(),
];
-if (is_a($vue_topFolder['description'], "Flexi_Template")) {
+if ($vue_topFolder['description'] instanceof Flexi\Template) {
$vue_topFolder['description'] = $vue_topFolder['description']->render();
}
$vue_topFolder['buttons'] = '<span class="multibuttons">';
diff --git a/app/views/files/index.php b/app/views/files/index.php
index 94ae3f4..6bf28f7 100644
--- a/app/views/files/index.php
+++ b/app/views/files/index.php
@@ -23,7 +23,7 @@
'additionalColumns' => $topFolder->getAdditionalColumns(),
'buttons' => null
];
- if (is_a($vue_topFolder['description'], "Flexi_Template")) {
+ if ($vue_topFolder['description'] instanceof Flexi\Template) {
$vue_topFolder['description'] = $vue_topFolder['description']->render();
}
$vue_files = [];