Bugs solucionados
This commit is contained in:
parent
1fca98aea3
commit
fbeeb0cd33
|
@ -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
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Vn\Lib
|
|||
class Locale
|
||||
{
|
||||
static $localeSet = FALSE;
|
||||
static $locale = 'en';
|
||||
static $locale = 'es';
|
||||
static $strings = [];
|
||||
static $paths = [];
|
||||
|
||||
|
@ -39,7 +39,7 @@ namespace Vn\Lib
|
|||
setlocale (LC_ALL, $locale);
|
||||
self::$localeSet = TRUE;
|
||||
|
||||
foreach (self::$paths as $path)
|
||||
foreach (self::$paths as $path => $kk)
|
||||
self::loadFile ($path);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue