Bugs solucionados

This commit is contained in:
Juan Ferrer Toribio 2015-02-08 16:39:22 +01:00
parent 1fca98aea3
commit fbeeb0cd33
3 changed files with 14 additions and 15 deletions

View File

@ -1,5 +1,5 @@
Package: php-vn-lib
Version: 1.0-5
Version: 1.0-7
Architecture: all
Maintainer: Juan Ferrer Toribio <juan@verdnatura.es>
Depends: php5-mysql

View File

@ -20,7 +20,7 @@ namespace Vn\Lib
class Locale
{
static $localeSet = FALSE;
static $locale = 'en';
static $locale = 'es';
static $strings = [];
static $paths = [];
@ -38,8 +38,8 @@ namespace Vn\Lib
self::$locale = $locale;
setlocale (LC_ALL, $locale);
self::$localeSet = TRUE;
foreach (self::$paths as $path)
foreach (self::$paths as $path => $kk)
self::loadFile ($path);
}
@ -76,7 +76,7 @@ namespace Vn\Lib
static function addPath ($path)
{
self::$paths[$path] = TRUE;
if (self::$localeSet)
self::loadFile ($path);
}

View File

@ -1,15 +1,14 @@
<?php
$n = -1;
define ('TYPE_NULL' , ++$n);
define ('TYPE_INTEGER' , ++$n);
define ('TYPE_TIME' , ++$n);
define ('TYPE_DATE' , ++$n);
define ('TYPE_DATE_TIME', ++$n);
define ('TYPE_STRING' , ++$n);
define ('TYPE_DOUBLE' , ++$n);
define ('TYPE_BOOLEAN' , ++$n);
define ('TYPE_OBJECT' , ++$n);
const TYPE_NULL = 1;
const TYPE_BOOLEAN = 2;
const TYPE_INTEGER = 3;
const TYPE_DOUBLE = 4;
const TYPE_STRING = 5;
const TYPE_OBJECT = 6;
const TYPE_TIME = 7;
const TYPE_DATE = 8;
const TYPE_DATE_TIME = 9;
class Time extends DateTime {}