diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-01-17 17:27:16 -0800 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-17 17:27:16 -0800 | 
| commit | 29be21bb0deaf70558b1aa02a115e67daefea0bd (patch) | |
| tree | a0d7e895b2e5fe6a78f77cf0575dda5a3798504a /modules/gallery/helpers/gallery.php | |
| parent | c1c67ecf8df8084ed0381b1fcbfa749500af5840 (diff) | |
Add BUILD_NUMBER to the security check in .htaccess
Change BUILD_NUMBER to be .ini format and add a big "do not edit" comment.
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
| -rw-r--r-- | modules/gallery/helpers/gallery.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index 31b342db..7a60f56a 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -205,7 +205,7 @@ class gallery_Core {     * Return the contents of the BUILD_NUMBER file, which should be a single integer.     */    static function build_number() { -    $lines = file(DOCROOT . "BUILD_NUMBER", FILE_IGNORE_NEW_LINES); -    return $lines[0]; +    $result = parse_ini_file(DOCROOT . "BUILD_NUMBER"); +    return $result["build_number"];    }  }
\ No newline at end of file | 
