From 429a108ff17ed27d965c028e7d545467630f4aa2 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 8 Nov 2005 21:19:19 +0000 Subject: - bug 180 fixed: remote_site.tpl doesn't validate. - translation bug fixed: generate_file_listing.php doesn't exist, it's create_listing_file.php ! git-svn-id: http://piwigo.org/svn/trunk@927 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/remote_site.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'admin') diff --git a/admin/remote_site.php b/admin/remote_site.php index 5044bd45a..fb778084f 100644 --- a/admin/remote_site.php +++ b/admin/remote_site.php @@ -714,6 +714,12 @@ SELECT id, galleries_url WHERE id != 1 ;'; $result = pwg_query($query); + +if (mysql_num_rows($result) > 0) +{ + $template->assign_block_vars('sites', array()); +} + while ($row = mysql_fetch_array($result)) { $base_url = PHPWG_ROOT_PATH.'admin.php'; @@ -722,7 +728,7 @@ while ($row = mysql_fetch_array($result)) $base_url.= '&action='; $template->assign_block_vars( - 'site', + 'sites.site', array( 'NAME' => $row['galleries_url'], 'U_GENERATE' => add_session_id($base_url.'generate'), -- cgit v1.2.3