diff --git a/src/administrator/components/com_weblinks/script.php b/src/administrator/components/com_weblinks/script.php index c0343f9..1e0d76a 100644 --- a/src/administrator/components/com_weblinks/script.php +++ b/src/administrator/components/com_weblinks/script.php @@ -348,4 +348,4 @@ class Com_WeblinksInstallerScript $db->execute(); } } -} \ No newline at end of file +} diff --git a/src/components/com_weblinks/src/Model/CategoryModel.php b/src/components/com_weblinks/src/Model/CategoryModel.php index 86239e8..db4035f 100644 --- a/src/components/com_weblinks/src/Model/CategoryModel.php +++ b/src/components/com_weblinks/src/Model/CategoryModel.php @@ -186,9 +186,11 @@ class CategoryModel extends ListModel { $nowDate = Factory::getDate()->toSql(); $query->where('(' . $db->quoteName('a.publish_up') - . ' IS NULL OR ' . $db->quoteName('a.publish_up') . ' <= :publish_up)') + . ' IS NULL OR ' . $db->quoteName('a.publish_up') . ' <= :publish_up)' + ) ->where('(' . $db->quoteName('a.publish_down') - . ' IS NULL OR ' . $db->quoteName('a.publish_down') . ' >= :publish_down)') + . ' IS NULL OR ' . $db->quoteName('a.publish_down') . ' >= :publish_down)' + ) ->bind(':publish_up', $nowDate) ->bind(':publish_down', $nowDate); } diff --git a/src/components/com_weblinks/src/Model/WeblinkModel.php b/src/components/com_weblinks/src/Model/WeblinkModel.php index 32308b6..9c05ada 100644 --- a/src/components/com_weblinks/src/Model/WeblinkModel.php +++ b/src/components/com_weblinks/src/Model/WeblinkModel.php @@ -126,9 +126,11 @@ class WeblinkModel extends ItemModel // Filter by start and end dates. $nowDate = Factory::getDate()->toSql(); $query->where('(' . $db->quoteName('a.publish_up') - . ' IS NULL OR ' . $db->quoteName('a.publish_up') . ' <= :publish_up)') + . ' IS NULL OR ' . $db->quoteName('a.publish_up') . ' <= :publish_up)' + ) ->where('(' . $db->quoteName('a.publish_down') - . ' IS NULL OR ' . $db->quoteName('a.publish_down') . ' >= :publish_down)') + . ' IS NULL OR ' . $db->quoteName('a.publish_down') . ' >= :publish_down)' + ) ->bind(':publish_up', $nowDate) ->bind(':publish_down', $nowDate); } diff --git a/src/components/com_weblinks/tmpl/form/edit.php b/src/components/com_weblinks/tmpl/form/edit.php index 301201f..5170723 100644 --- a/src/components/com_weblinks/tmpl/form/edit.php +++ b/src/components/com_weblinks/tmpl/form/edit.php @@ -37,7 +37,7 @@ $params = $this->state->get('params'); params->get('show_page_heading')) : ?>