aboutsummaryrefslogtreecommitdiffstats
path: root/admin/update.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-11-03 21:35:24 +0000
committerz0rglub <z0rglub@piwigo.org>2003-11-03 21:35:24 +0000
commit860a39302ead57c596bec64e9d738c5dd69640bd (patch)
treea71089e36e0f9c2a90ff5fc373dc5f07551e5ddb /admin/update.php
parent5fdc7ea1e582c7378ea8fd8ac3a9a50ec5298970 (diff)
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
Diffstat (limited to 'admin/update.php')
-rw-r--r--admin/update.php12
1 files changed, 6 insertions, 6 deletions
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;