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 = '';