ZenphotoCMS Forum
Revision number in functions.php - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Revision number in functions.php (/thread-2284.html)



Revision number in functions.php - jlang - 2008-02-26

It's great that the SVN revision number is updated each night but could it be removed from functions.php? Possibly to a file of its own. The revision log for functions.php is now littered with these relatively trivial changes making it harder to see which are real code modifications.




Revision number in functions.php - jsumners - 2008-02-26

I don't see why something like this wouldn't work:

`

function version() {

$fp = fopen($zp_root . '/zp-core/version', 'rb');

$version = fpassthru($fp);

fclose($fp);

return $version;

}

`

With '/zp-core/version' containing text like "1.1.4 [1150]".




Revision number in functions.php - trisweb - 2008-02-26

Good idea, I have also been annoyed at the cluttered logs for a relatively often-changed file... I will change it.

And I thought my use of sed was awesome ;-)




Revision number in functions.php - DirkSohler - 2008-02-28

Oh, there is a possibility to show more than just “1.1.4”? How?




Revision number in functions.php - sbillard - 2008-02-28

There is a define ZENPHOTO_RELEASE now included in the nightly builds (but NOT in the 1.1.4 base) that you can display if you wish: echo getOption('version').' ['.ZENPHOTO_RELEASE.']'; should do it.