Aktionen
GX-Task #68681
offenrelease_info.php now returns the shop version
Status:
Gemeldet
Priorität:
Normal
Zugewiesen an:
Moritz Bunjes
Kategorie:
Innovation
Zielversion:
% erledigt:
0%
Betroffene Versionen:
Unbestimmt
Beschreibung
The release_info.php still provides the variable $gx_version
but now also returns its value. Instead of writing (still valid, but deprecated):
include 'release_info.php';
doSomethingWithTheVersion($gx_version);
you can write
$shopVersion = include 'release_info.php';
doSomethingWithTheVersion($shopVersion);
making the code more readable and better to understand. You can also use
$shopVersion = Gambio\Core\Application\Application::VERSION;
doSomethingWithTheVersion($shopVersion);
Aktionen