]> git.agnieray.net Git - galette.git/blobdiff - galette/includes/galette.inc.php
Bump version
[galette.git] / galette / includes / galette.inc.php
index 03cba505e0bcf0576e16ab4895ec529566838a07..a58ea0c695d0ea838c24cb4d51c0b68a88b93222 100644 (file)
@@ -30,7 +30,6 @@
  * @author    Johan Cwiklinski <johan@x-tnd.be>
  * @copyright 2007-2018 The Galette Team
  * @license   http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
- * @version   SVN: $Id$
  * @link      http://galette.tuxfamily.org
  * @since     Available since 0.7-dev - 2007-10-07
  */
@@ -46,7 +45,7 @@ require_once GALETTE_ROOT . 'config/paths.inc.php';
 // check required PHP version...
 if (version_compare(PHP_VERSION, GALETTE_PHP_MIN, '<')) {
     echo 'Galette is NOT compliant with your current PHP version. ' .
-        'Galette requires PHP ' . GALETTE_PHP_MIN  .
+        'Galette requires PHP ' . GALETTE_PHP_MIN .
         ' minimum and current version is ' . phpversion();
     die(1);
 }
@@ -71,7 +70,8 @@ if (!$installed && !$installer) {
     die();
 }
 
-if (file_exists(GALETTE_CONFIG_PATH . 'behavior.inc.php')
+if (
+    file_exists(GALETTE_CONFIG_PATH . 'behavior.inc.php')
     && !defined('GALETTE_TESTS') && !$cron
 ) {
     include_once GALETTE_CONFIG_PATH . 'behavior.inc.php';
@@ -98,7 +98,8 @@ if (PHP_SAPI === 'cli-server' && $_SERVER['SCRIPT_FILENAME'] !== __FILE__) {
 require GALETTE_ROOT . '/vendor/autoload.php';
 
 //start profiling
-if (defined('GALETTE_XHPROF_PATH')
+if (
+    defined('GALETTE_XHPROF_PATH')
     && function_exists('xhprof_enable')
 ) {
     include_once __DIR__ . '/../lib/Galette/Common/XHProf.php';
@@ -106,7 +107,8 @@ if (defined('GALETTE_XHPROF_PATH')
     $profiler->start();
 }
 
-define('GALETTE_VERSION', 'v0.9.4-dev');
+define('GALETTE_NIGHTLY', false);
+define('GALETTE_VERSION', 'v0.9.4.2');
 
 //Version to display
 if (!defined('GALETTE_HIDE_VERSION')) {
@@ -123,7 +125,7 @@ if (!isset($_COOKIE['show_galette_dashboard'])) {
     setcookie(
         'show_galette_dashboard',
         true,
-        time()+31536000 //valid for a year
+        time() + 31536000 //valid for a year
     );
 }
 
@@ -170,7 +172,7 @@ if (defined('GALETTE_TESTS')) {
         if (GALETTE_LOG_LVL >= Analog::INFO) {
             $now = new \DateTime();
             $dbg_log_path = GALETTE_LOGS_PATH . 'galette_debug_' .
-                $now->format('Y-m-d')  . '.log';
+                $now->format('Y-m-d') . '.log';
             $galette_debug_log = LevelName::init(Handler\File::init($dbg_log_path));
         } else {
             $galette_debug_log = Handler\Ignore::init();
@@ -201,7 +203,7 @@ if (defined('GALETTE_TESTS')) {
 
 Analog::handler(
     Handler\Multi::init(
-        array (
+        array(
             Analog::NOTICE  => Handler\Threshold::init(
                 $galette_run_log,
                 GALETTE_LOG_LVL