From af946d1ac24d841514619c588658c4beae211003 Mon Sep 17 00:00:00 2001 From: Dennis Kerzig Date: Tue, 8 May 2018 13:29:41 +0200 Subject: [PATCH] v0.5.0 (see release notes) --- broken-links-widget.php | 3 +-- broken-links/broken-links.php | 3 +-- broken-links/template.php | 6 ++++-- helpers.php | 9 --------- languages/de.php | 8 +++++--- languages/en.php | 10 ++++++---- languages/fr.php | 8 +++++--- languages/pl.php | 10 ++++++---- package.json | 2 +- 9 files changed, 29 insertions(+), 30 deletions(-) diff --git a/broken-links-widget.php b/broken-links-widget.php index 2d31541..21ac88a 100644 --- a/broken-links-widget.php +++ b/broken-links-widget.php @@ -5,7 +5,7 @@ * * @package Kirby CMS * @author Dennis Kerzig -* @version 0.4.0 +* @version 0.5.0 * */ @@ -20,7 +20,6 @@ */ function loadBlinksTranslation() { - if (defined('KIRBY')) { $site = kirby()->site(); $code = $site->multilang() ? $site->language()->code() : $site->user()->language(); diff --git a/broken-links/broken-links.php b/broken-links/broken-links.php index ddd443d..a0bee40 100644 --- a/broken-links/broken-links.php +++ b/broken-links/broken-links.php @@ -63,8 +63,7 @@ // Populate the Widget-Template return tpl::load(__DIR__ . DS . 'template.php', [ 'broken_links' => $broken_links, - 'has_broken_links' => !empty(array_filter($broken_links)), - 'brokenLinksOk' => l::get('broken-links.ok') + 'has_broken_links' => !empty(array_filter($broken_links)) ]); } diff --git a/broken-links/template.php b/broken-links/template.php index ea52897..0130d5c 100644 --- a/broken-links/template.php +++ b/broken-links/template.php @@ -1,5 +1,6 @@ +