aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_metadata.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-09-21 11:06:20 +0000
committerrvelices <rv-github@modusoptimus.com>2008-09-21 11:06:20 +0000
commit93fb07841fad34e25ff1e7d5d353dcb7433d094d (patch)
treeea89517a2cab2f8d7d23b57413a14d5995e6aeed /admin/include/functions_metadata.php
parenta0a0511a6ff430797618b6aa3640fc6bed8b4dc6 (diff)
- fix function get_fulldirs - works correctly eent for wrong params (virtual cats)
- fix functions_metadata.php - could not be included from inside another function git-svn-id: http://piwigo.org/svn/trunk@2560 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_metadata.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php
index 51867b448..c4bab5a9b 100644
--- a/admin/include/functions_metadata.php
+++ b/admin/include/functions_metadata.php
@@ -23,11 +23,10 @@
include_once(PHPWG_ROOT_PATH.'/include/functions_metadata.inc.php');
-$page['datefields'] = array('date_creation', 'date_available');
function get_sync_iptc_data($file)
{
- global $conf, $page;
+ global $conf;
$map = $conf['use_iptc_mapping'];
@@ -35,7 +34,7 @@ function get_sync_iptc_data($file)
foreach ($iptc as $pwg_key => $value)
{
- if (in_array($pwg_key, $page['datefields']))
+ if (in_array($pwg_key, array('date_creation', 'date_available')))
{
if (preg_match('/(\d{4})(\d{2})(\d{2})/', $value, $matches))
{
@@ -71,13 +70,13 @@ function get_sync_iptc_data($file)
function get_sync_exif_data($file)
{
- global $conf, $page;
+ global $conf;
$exif = get_exif_data($file, $conf['use_exif_mapping']);
foreach ($exif as $pwg_key => $value)
{
- if (in_array($pwg_key, $page['datefields']))
+ if (in_array($pwg_key, array('date_creation', 'date_available')))
{
if (preg_match('/^(\d{4}).(\d{2}).(\d{2})/', $value, $matches))
{