From 2aa44e9e9fe4b949fbd4dc303a86757ebbb20d68 Mon Sep 17 00:00:00 2001 From: Frank Mayer Date: Sun, 2 Oct 2016 17:55:34 +0300 Subject: [PATCH 01/19] Elvis --- components/com_ajax/ajax.php | 2 +- components/com_config/model/cms.php | 2 +- components/com_contact/views/contact/tmpl/default_links.php | 2 +- components/com_content/helpers/icon.php | 2 +- components/com_content/views/archive/tmpl/default_items.php | 2 +- components/com_content/views/article/tmpl/default_links.php | 4 ++-- components/com_content/views/article/view.html.php | 2 +- .../com_content/views/category/tmpl/default_articles.php | 2 +- components/com_content/views/category/view.feed.php | 2 +- components/com_content/views/featured/view.feed.php | 2 +- components/com_tags/views/tag/view.feed.php | 2 +- components/com_tags/views/tags/view.feed.php | 2 +- components/com_users/models/reset.php | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/components/com_ajax/ajax.php b/components/com_ajax/ajax.php index 6c469cf2f2686..fb3d837f8318b 100644 --- a/components/com_ajax/ajax.php +++ b/components/com_ajax/ajax.php @@ -82,7 +82,7 @@ $class = 'Mod' . ucfirst($module) . 'Helper'; } - $method = $input->get('method') ? $input->get('method') : 'get'; + $method = $input->get('method') ?: 'get'; if (is_file($helperFile)) { diff --git a/components/com_config/model/cms.php b/components/com_config/model/cms.php index f6966288ab1a2..b1c0b10ed6991 100644 --- a/components/com_config/model/cms.php +++ b/components/com_config/model/cms.php @@ -218,7 +218,7 @@ protected function cleanCache($group = null, $client_id = 0) $dispatcher = JEventDispatcher::getInstance(); $options = array( - 'defaultgroup' => ($group) ? $group : (isset($this->option) ? $this->option : JFactory::getApplication()->input->get('option')), + 'defaultgroup' => ($group) ?: (isset($this->option) ? $this->option : JFactory::getApplication()->input->get('option')), 'cachebase' => ($client_id) ? JPATH_ADMINISTRATOR . '/cache' : $conf->get('cache_path', JPATH_SITE . '/cache')); $cache = JCache::getInstance('callback', $options); diff --git a/components/com_contact/views/contact/tmpl/default_links.php b/components/com_contact/views/contact/tmpl/default_links.php index 4a38c96c5f9d1..8901ac9d6f9dc 100644 --- a/components/com_contact/views/contact/tmpl/default_links.php +++ b/components/com_contact/views/contact/tmpl/default_links.php @@ -36,7 +36,7 @@ $link = (0 === strpos($link, 'http')) ? $link : 'http://' . $link; // If no label is present, take the link - $label = ($label) ? $label : $link; + $label = ($label) ?: $link; ?>