Skip to content

Commit 5d3cd33

Browse files
committed
pkp/pkp-lib#11396 Make OPS more resilient to missing theme plugins
1 parent 2dd3443 commit 5d3cd33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/frontend/objects/preprint_details.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@
199199

200200
{call_hook name="Templates::Preprint::Main"}
201201

202-
{* Usage statistics chart*}
203-
{if $activeTheme->getOption('displayStats') != 'none'}
202+
{* Usage statistics chart *}
203+
{if $activeTheme && $activeTheme->getOption('displayStats') != 'none'}
204204
{$activeTheme->displayUsageStatsGraph($preprint->getId())}
205205
<section class="item downloads_chart">
206206
<h2 class="label">

templates/frontend/pages/indexServer.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{include file="frontend/components/highlights.tpl" highlights=$highlights}
2828
{/if}
2929

30-
{if !$activeTheme->getOption('useHomepageImageAsHeader') && $homepageImage}
30+
{if $activeTheme && !$activeTheme->getOption('useHomepageImageAsHeader') && $homepageImage}
3131
<img src="{$publicFilesDir}/{$homepageImage.uploadName|escape:"url"}" alt="{$homepageImageAltText|escape}">
3232
{/if}
3333

@@ -47,7 +47,7 @@
4747
</section>
4848

4949
{* Server Description *}
50-
{if $activeTheme->getOption('showDescriptionInServerIndex')}
50+
{if $activeTheme && $activeTheme->getOption('showDescriptionInServerIndex')}
5151
<section class="homepage_about">
5252
<a id="homepageAbout"></a>
5353
<h2>{translate key="about.aboutContext"}</h2>

0 commit comments

Comments
 (0)