From 614f483e422bbe0701046ea3b84f8fd08cc97065 Mon Sep 17 00:00:00 2001 From: Robin Treur Date: Mon, 25 Oct 2021 17:32:16 +0200 Subject: [PATCH] Fixed Publisher FallBack bug --- system/user/addons/seo_lite/addon.setup.php | 2 +- system/user/addons/seo_lite/mcp.seo_lite.php | 2 +- system/user/addons/seo_lite/upd.seo_lite.php | 6 +++--- system/user/addons/seo_lite_publisher/addon.setup.php | 2 +- .../addons/seo_lite_publisher/ext.seo_lite_publisher.php | 6 ++++-- 5 files changed, 10 insertions(+), 8 deletions(-) diff --git a/system/user/addons/seo_lite/addon.setup.php b/system/user/addons/seo_lite/addon.setup.php index 6e87fa1..d22f8de 100644 --- a/system/user/addons/seo_lite/addon.setup.php +++ b/system/user/addons/seo_lite/addon.setup.php @@ -5,7 +5,7 @@ 'author_url' => 'https://0to9.nl', 'name' => 'SEO Lite (v2)', 'description' => 'The no-brainer approach to SEO for ExpressionEngine. This module is a fork of SEO Lite (https://github.com/bjornbjorn/SEO-Lite)', - 'version' => '2.0.1', + 'version' => '2.0.2', 'namespace' => '0to9\SEO-Lite-2', 'settings_exist' => TRUE, ); \ No newline at end of file diff --git a/system/user/addons/seo_lite/mcp.seo_lite.php b/system/user/addons/seo_lite/mcp.seo_lite.php index 1a98848..ef7088d 100644 --- a/system/user/addons/seo_lite/mcp.seo_lite.php +++ b/system/user/addons/seo_lite/mcp.seo_lite.php @@ -51,7 +51,7 @@ function __construct( $switch = TRUE ) ee('CP/URL', 'addons/settings/seo_lite/audit_entry'); - ee()->cp->add_to_head(""); + ee()->cp->add_to_head(""); } function index() diff --git a/system/user/addons/seo_lite/upd.seo_lite.php b/system/user/addons/seo_lite/upd.seo_lite.php index 2fd4f15..3683e49 100644 --- a/system/user/addons/seo_lite/upd.seo_lite.php +++ b/system/user/addons/seo_lite/upd.seo_lite.php @@ -12,7 +12,7 @@ class Seo_lite_upd { - var $version = '2.0.1'; + var $version = '2.0.2'; var $module_name = "Seo_lite"; /** @@ -185,11 +185,11 @@ function install() // insert default config $this->EE->db->insert('seolite_config', array( - 'template' => "{title}{site_name}{if og_description}{/if}{if og_type}{/if}{if og_url}{/if}{if og_image}{/if}{if twitter_type}{/if}{if twitter_description}{/if}{if twitter_image}{/if}", + 'template' => "{title}{if og_description}{/if}{if og_type}{/if}{if og_url}{/if}{if og_image}{/if}{if twitter_type}{/if}{if twitter_description}{/if}{if twitter_image}{/if}", 'site_id' => $site_id, 'default_keywords' => 'your, default, keywords, here', 'default_description' => 'Your default description here', - 'default_title_postfix' => ' | ', + 'default_title_postfix' => ' | [SITENAME]', 'default_og_description' => '', 'default_og_image' => '', 'default_twitter_description' => '', diff --git a/system/user/addons/seo_lite_publisher/addon.setup.php b/system/user/addons/seo_lite_publisher/addon.setup.php index 6eee654..f1e05fd 100644 --- a/system/user/addons/seo_lite_publisher/addon.setup.php +++ b/system/user/addons/seo_lite_publisher/addon.setup.php @@ -1,7 +1,7 @@ currentStatus; /* - if (ee()->publisher_setting->show_fallback()) { + if (ee()->publisher_setting->showFallback()) { $translatedWhere = [ 'publisher_lang_id' => $langId, @@ -245,7 +245,9 @@ public function seo_lite_fetch_data($where, $table_name) { $langId = $this->currentLanguageId; $status = $this->currentStatus; - if ($this->publisherSetting->show_fallback()) { + + + if ($this->publisherSetting->showFallback()) { /** @var CI_DB_result $q */ $translatedWhere = [ 'publisher_lang_id' => $langId,