diff options
| author | Michael D. Reiley <mreiley@omegasdg.com> | 2011-10-10 03:40:31 -0700 |
|---|---|---|
| committer | Michael D. Reiley <mreiley@omegasdg.com> | 2011-10-10 03:40:31 -0700 |
| commit | a88f89a4aab902deeb01ea7a6abad7c00daacdd1 (patch) | |
| tree | e4f07fa013afd3b10b4cbbc6e0fd872a51b3c751 /inc/functions.php | |
| parent | f6a499778033199fac9b2ee6165da85190e98c2b (diff) | |
Footer version string pulled from .installed
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php index 70e5eadd..464d22da 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -19,6 +19,10 @@ require $board['dir'] . '/config.php'; } + if(!isset($__version)) + $__version = trim(file_get_contents('.installed')); + $config['version'] = $__version; + if($config['debug']) { if(!isset($debug)) { $debug = Array('sql' => Array(), 'purge' => Array(), 'cached' => Array()); |
