Skip to content

[4] com_content.article view. Remove redundant if $this->item->pagination#37861

Merged
Quy merged 2 commits intojoomla:4.1-devfrom
ReLater:patch-2
May 28, 2022
Merged

[4] com_content.article view. Remove redundant if $this->item->pagination#37861
Quy merged 2 commits intojoomla:4.1-devfrom
ReLater:patch-2

Conversation

@ReLater
Copy link
Copy Markdown
Contributor

@ReLater ReLater commented May 22, 2022

Summary of Changes

  • The second part of condition !empty($this->item->pagination) && $this->item->pagination is redundant. "If it's not empty then it is" ;-)
  • See other similar code lines in the file where this double check has been removed already a long time ago.

Testing Instructions

  • Code review.

@toivo
Copy link
Copy Markdown
Contributor

toivo commented May 23, 2022

I have tested this item ✅ successfully on f2b8703

Tested successfully in Joomla 4.1.4-rc2-dev of 23 May.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37861.

@ChristineWk
Copy link
Copy Markdown

I have tested this item ✅ successfully on f2b8703


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37861.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37861.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 23, 2022
@chmst
Copy link
Copy Markdown
Contributor

chmst commented May 23, 2022

I cannot find the code in may 4.1-dev branch.
https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_content/tmpl/article/default.php#L138
This change was made a year ago 733786f
or am I missing something?

@richard67
Copy link
Copy Markdown
Member

I cannot find the code in may 4.1-dev branch. https://github.com/joomla/joomla-cms/blob/4.1-dev/components/com_content/tmpl/article/default.php#L138 This change was made a year ago 733786f or am I missing something?

@chmst Your link goes to line 138, but this PR changes line 95. The old commit changed line 43.

@chmst
Copy link
Copy Markdown
Contributor

chmst commented May 23, 2022

oops - thanks, this code needs more improvement ;)

@Quy Quy added this to the Joomla 4.1.5 milestone May 28, 2022
@Quy Quy merged commit 86c0c54 into joomla:4.1-dev May 28, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 28, 2022
@Quy
Copy link
Copy Markdown
Contributor

Quy commented May 28, 2022

Thanks

@ReLater ReLater deleted the patch-2 branch June 14, 2022 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants