diff --git a/Theme/Backend/resource-comparison-inline.tpl.php b/Theme/Backend/resource-comparison-inline.tpl.php index 23d383e..27d7cf8 100644 --- a/Theme/Backend/resource-comparison-inline.tpl.php +++ b/Theme/Backend/resource-comparison-inline.tpl.php @@ -117,10 +117,12 @@ $newDiffPath = ''; $base = __DIR__ . '/../../../../'; $newDiffPath = ''; - if ($type === 'pdf') { - $newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath, '.pdf') . '.htm'; - } else { - $newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath); + if ($new !== null) { + if ($type === 'pdf') { + $newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath, '.pdf') . '.htm'; + } else { + $newDiffPath = \dirname($newWebPath) . '/_' . \basename($newWebPath); + } } ?> @@ -168,7 +170,7 @@ $newDiffPath = '';
- +
diff --git a/Theme/Backend/resource-create.tpl.php b/Theme/Backend/resource-create.tpl.php index 37e9381..6b21478 100755 --- a/Theme/Backend/resource-create.tpl.php +++ b/Theme/Backend/resource-create.tpl.php @@ -18,12 +18,13 @@ use phpOMS\Uri\UriFactory;
-
+
getHtml('CreateResource', 'OnlineResourceWatcher', 'Backend'); ?>
- +
diff --git a/Theme/Backend/resource-view.tpl.php b/Theme/Backend/resource-view.tpl.php index 06b26eb..1e9a070 100644 --- a/Theme/Backend/resource-view.tpl.php +++ b/Theme/Backend/resource-view.tpl.php @@ -26,7 +26,7 @@ $reports = $resource->reports;
- +