Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class PageNavigation extends CMSPlugin
* @param mixed &$params The article params
* @param integer $page The 'page' number
*
* @return mixed void or true
* @return void
*
* @since 1.6
*/
Expand All @@ -50,7 +50,7 @@ public function onContentBeforeDisplay($context, &$row, &$params, $page = 0)
$print = $app->getInput()->getBool('print');

if ($print) {
return false;
return;
}

if ($context === 'com_content.article' && $view === 'article' && $params->get('show_item_navigation')) {
Expand Down
4 changes: 2 additions & 2 deletions plugins/content/vote/src/Extension/Vote.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function onContentAfterDisplay($context, &$row, &$params, $page = 0)
* @param object &$params The article params
* @param integer $page The 'page' number
*
* @return string|boolean HTML string containing code for the votes if in com_content else boolean false
* @return string HTML string containing code for the votes if in com_content else empty string
*
* @since 3.7.0
*/
Expand All @@ -93,7 +93,7 @@ private function displayVotingData($context, &$row, &$params, $page)
$parts = explode('.', $context);

if ($parts[0] !== 'com_content') {
return false;
return '';
}

if (empty($params) || !$params->get('show_vote', null)) {
Expand Down