mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug:2383
/!\ corrected but not checked git-svn-id: http://piwigo.org/svn/trunk@11925 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -55,7 +55,7 @@ function pwg_db_connect($host, $user, $password, $database)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$link->createFunction('now', 'pwg_now', 0);
|
$link->createFunction('now', 'pwg_now', 0);
|
||||||
$link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 0);
|
$link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 1);
|
||||||
$link->createFunction('md5', 'md5', 1);
|
$link->createFunction('md5', 'md5', 1);
|
||||||
$link->createFunction('if', 'pwg_if', 3);
|
$link->createFunction('if', 'pwg_if', 3);
|
||||||
|
|
||||||
@@ -694,7 +694,7 @@ function pwg_now()
|
|||||||
|
|
||||||
function pwg_unix_timestamp()
|
function pwg_unix_timestamp()
|
||||||
{
|
{
|
||||||
return time();
|
return strtotime($strDate);
|
||||||
}
|
}
|
||||||
|
|
||||||
function pwg_if($expression, $value1, $value2)
|
function pwg_if($expression, $value1, $value2)
|
||||||
|
|||||||
Reference in New Issue
Block a user