powerTrail/ajaxUpdateStatus.php returns correct JSON now instead of HTML,
src/Models/PowerTrail/PowerTrail.php: canBeOpened() method additionally checks if geopath is published already
The rest of changes are minor logical fixes (like removing this in static method) and code style adjustments.
Remark: IMHO these files need a little deeper refactoring, but the whole geopath creation functionality is promised to be rewritten, so let it be as it is for now.
Substantive changes:
powerTrail/ajaxUpdateStatus.php
returns correct JSON now instead of HTML,src/Models/PowerTrail/PowerTrail.php
:canBeOpened()
method additionally checks if geopath is published alreadyThe rest of changes are minor logical fixes (like removing
this
instatic
method) and code style adjustments.Remark: IMHO these files need a little deeper refactoring, but the whole geopath creation functionality is promised to be rewritten, so let it be as it is for now.