-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0]namespace administrator components com_joomlaupdate #21057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Why? Given that drone fails on something that is not related to this changes here anyway? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just added some comments. The general changes look good on a quick review.
|
|
||
| /* | ||
| * Check the PHP Version. It is already checked in JUpdate. | ||
| * Check the PHP Version. It is already checked in Update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This result into a useless comment can we convert this please to
Check the PHP Version. It is already checked in the Update prozess
| define('_JEXEC', 1); | ||
| } | ||
|
|
||
| use Joomla\CMS\Language\Text; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is 3rd Party Code. I'm not sure if we really should touch this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do we should also fix JFile to File but for me I'm not sure if that overrides apply anyway. (given that we now use namespaced versions of that code)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not 3rd party code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My point about the overrides etc still stands even when there is a Joomla header in that file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is our hook point into the restore.php file. It is not third party.
|
|
||
| HTMLHelper::_('behavior.keepalive'); | ||
|
|
||
| $twofactormethods = \Joomla\CMS\Helper\AuthenticationHelper::getTwoFactorMethods(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should't this be imported by use also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it can be
|
|
||
| HTMLHelper::_('behavior.keepalive'); | ||
|
|
||
| $twofactormethods = \Joomla\CMS\Helper\AuthenticationHelper::getTwoFactorMethods(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Should be imported by use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it>? you dont seem sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please import it using a user and than use the namespaced version
|
Please add to the following test cases: Test case 1
Test case 2
|
| use Joomla\CMS\Router\Route; | ||
| use Joomla\CMS\Factory; | ||
| use Joomla\CMS\HTML\HTMLHelper; | ||
| use Joomla\CMS\Helper\\AuthenticationHelper; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra \
| use Joomla\CMS\User\UserHelper; | ||
| use Joomla\CMS\Client\ClientHelper; | ||
| use Joomla\CMS\Client\FtpClient; | ||
| use Joomla\CMS\Fileystem\File; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling Fileystem
| use Joomla\CMS\Response\JsonResponse; | ||
| use Joomla\CMS\Session\Session; | ||
| use Joomla\CMS\Client\ClientHelper; | ||
| use Joomla\CMS\Fileystem\File; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spelling Fileystem
|
Thanks! |
|
thanks |
continuing the work to namespace joomla4 one admin component at a time.
please wait for drone to successfully complete before reviewing.