Revision number in functions.php

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.

Comments

  • 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]".
  • trisweb Administrator
    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 ;-)
  • Oh, there is a possibility to show more than just “1.1.4”? How?
  • 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.
Sign In or Register to comment.