From 860a39302ead57c596bec64e9d738c5dd69640bd Mon Sep 17 00:00:00 2001 From: z0rglub Date: Mon, 3 Nov 2003 21:35:24 +0000 Subject: Modifications linked to the move of admin.php to the root directory of PhpWebGallery git-svn-id: http://piwigo.org/svn/trunk@228 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/update.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'admin/update.php') diff --git a/admin/update.php b/admin/update.php index c19dc7219..df1c6ebff 100644 --- a/admin/update.php +++ b/admin/update.php @@ -22,12 +22,12 @@ include_once( './admin/include/isadmin.inc.php' ); function insert_local_category( $cat_id ) { global $conf, $page, $user, $lang; - + $site_id = 1; - + // 0. retrieving informations on the category to display - $cat_directory = '../galleries'; - + $cat_directory = './galleries'; + if ( is_numeric( $cat_id ) ) { $cat_directory.= '/'.get_local_dir( $cat_id ); @@ -64,7 +64,7 @@ function insert_local_category( $cat_id ) while ( $row = mysql_fetch_array( $result ) ) { // retrieving the directory - $rep = '../galleries/'.get_local_dir( $row['id'] ); + $rep = './galleries/'.get_local_dir( $row['id'] ); // is the directory present ? if ( !is_dir( $rep ) ) delete_category( $row['id'] ); } @@ -588,7 +588,7 @@ if ( !isset( $_GET['update'] ) $vtp->setVar( $sub, 'introduction.all:url', $url ); $vtp->closeSession( $sub, 'introduction' ); } -//------------------------------------------------- local update : ../galleries +//-------------------------------------------------- local update : ./galleries else { $count_new = 0; -- cgit v1.2.3