aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/functions_upload.inc.php4
-rw-r--r--admin/photos_add_direct.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index 438f30bcd..c00e73b93 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -26,7 +26,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
global $conf;
// current date
- list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();'));
+ list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
list($year, $month, $day) = preg_split('/[^\d]/', $dbnow, 4);
// upload directory hierarchy
@@ -120,7 +120,7 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie
array($insert)
);
- $image_id = mysql_insert_id();
+ $image_id = pwg_db_insert_id();
if (isset($categories) and count($categories) > 0)
{
diff --git a/admin/photos_add_direct.php b/admin/photos_add_direct.php
index 710eaf739..682e4baaa 100644
--- a/admin/photos_add_direct.php
+++ b/admin/photos_add_direct.php
@@ -237,7 +237,7 @@ SELECT
FROM '.IMAGES_TABLE.'
WHERE id = '.$image_id.'
;';
- $image_infos = mysql_fetch_assoc(pwg_query($query));
+ $image_infos = pwg_db_fetch_assoc(pwg_query($query));
$thumbnail['file'] = $image_infos['file'];
@@ -297,7 +297,7 @@ SELECT
FROM '.IMAGE_CATEGORY_TABLE.'
WHERE category_id = '.$category_id.'
;';
- list($count) = mysql_fetch_row(pwg_query($query));
+ list($count) = pwg_db_fetch_row(pwg_query($query));
$category_name = get_cat_display_name_from_id($category_id, 'admin.php?page=cat_modify&cat_id=');
// information