Skip to content

[Code Style]Clean up com_redirect backend.#4609

Closed
roland-d wants to merge 1 commit intojoomla:stagingfrom
roland-d:be_com_redirect_cs
Closed

[Code Style]Clean up com_redirect backend.#4609
roland-d wants to merge 1 commit intojoomla:stagingfrom
roland-d:be_com_redirect_cs

Conversation

@roland-d
Copy link
Copy Markdown
Contributor

[Code Style]Clean up com_redirect backend.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to do the same I did in phproberto@69668fa for my #4569 PR

I would:

  • Create a new method called status or state
  • As $i is supposed to be the row number maybe we should use 0 but I can also change my PR to use null. We just need to be consistent.
  • On the new function $canChange default value should be false without doubts. I think allowing by defaul is not a good way.
  • Replace any JHtml::_('redirect.published'... call to point to the new function JHtml::_('redirect.status'... changing the parameters order. I think $i should be the first parameter because not adding it would break all the list behavior.

rdeutz pushed a commit to rdeutz/joomla-cms that referenced this pull request Oct 24, 2014
@roland-d roland-d deleted the be_com_redirect_cs branch May 6, 2015 06:02
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.

5 participants