Member
Member
jlang   26-02-2008, 11:06
#1

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.

Member
Member
jsumners   26-02-2008, 15:49
#2

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]".

Developer
Developer
trisweb   26-02-2008, 20:42
#3

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 ;-)

Member
Member
DirkSohler   28-02-2008, 13:13
#4

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

Member
Member
sbillard   28-02-2008, 19:02
#5

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.