? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
16 Oct 2018

Pull Request for Issue #22636 .

Summary of Changes

detect correct IP address using
forked FOFUtilsIp::getIp() with joomla-framework/utilities#22 to IpHelper::getIp()

Testing Instructions

see #22636

avatar alikon alikon - open - 16 Oct 2018
avatar alikon alikon - change - 16 Oct 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2018
Category Front End Plugins
avatar zero-24
zero-24 - comment - 16 Oct 2018

Yes I'm repeating me: I would suggest to fork the fof method into some joomla API / lib (with mention the source) so we are not going to introduce another dependency on the deprecated / old FOF code.

avatar mbabker
mbabker - comment - 16 Oct 2018

Yeah, might as well do it now versus merging now with the FOF dependency then whenever this all merges forward to 4.0 having to rewrite it then since the library isn't present anymore.

avatar laoneo
laoneo - comment - 16 Oct 2018

Agree, especially as we removed FOF in J4.

avatar alikon
alikon - comment - 16 Oct 2018

well then, something like '/joomla/utilities/src/IpHelper.php' could be OK ?

avatar alikon alikon - change - 16 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2018
Category Front End Plugins External Library Libraries Composer Change Front End Plugins
avatar alikon alikon - change - 16 Oct 2018
Labels Added: ?
avatar mbabker
mbabker - comment - 16 Oct 2018

If you're gonna put it at libraries/vendor/joomla/utilities/src/IpHelper.php then this needs to be a Framework pull request to https://github.com/joomla-framework/utilities

Otherwise to keep it in the CMS only move it to libraries/src/Utility/IpHelper.php with class name Joomla\CMS\Utility\IpHelper

(Not saying I prefer one over the other, though arguably it'd be better suited in the Framework package, but those are the two options and the work involved for each one)

avatar alikon
alikon - comment - 16 Oct 2018

i'm really slow ? sorry

joomla-framework/utilities#22

avatar alikon alikon - change - 16 Oct 2018
The description was changed
avatar alikon alikon - edited - 16 Oct 2018
avatar mbabker
mbabker - comment - 16 Oct 2018

If you're going to do code (style) feedback on the IpHelper class, joomla-framework/utilities#22 would be a more efficient place to do that (please and thank you).

avatar PhilETaylor
PhilETaylor - comment - 16 Oct 2018

If you're going to do code (style) feedback on the IpHelper class, joomla-framework/utilities#22 would be a more efficient place to do that (please and thank you).

Sorry in bed on iphone :) Also "forker" text not in that patch

avatar mbabker
mbabker - comment - 16 Oct 2018

5153c83 has committed the bump on the Utilities package, so this PR needs updating to account for that.

avatar alikon
alikon - comment - 17 Oct 2018

closing in favor #22682

avatar alikon alikon - change - 17 Oct 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-10-17 12:51:02
Closed_By alikon
avatar alikon alikon - close - 17 Oct 2018

Add a Comment

Login with GitHub to post a comment