diff options
author | plegall <plg@piwigo.org> | 2005-11-08 21:19:19 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-11-08 21:19:19 +0000 |
commit | 429a108ff17ed27d965c028e7d545467630f4aa2 (patch) | |
tree | ab6320a64436e9dfc43d9419fcc30e461c5e8370 | |
parent | 5282ee6fb1e6a6f9db6b68b66494d1a225c207ab (diff) |
- 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
-rw-r--r-- | admin/remote_site.php | 8 | ||||
-rw-r--r-- | doc/ChangeLog | 7 | ||||
-rw-r--r-- | language/en_UK.iso-8859-1/admin.lang.php | 2 | ||||
-rw-r--r-- | language/fr_FR.iso-8859-1/admin.lang.php | 2 | ||||
-rw-r--r-- | template/yoga/admin/remote_site.tpl | 12 |
5 files changed, 23 insertions, 8 deletions
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'), diff --git a/doc/ChangeLog b/doc/ChangeLog index b590fb6b5..7c9c084d7 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,4 +1,11 @@ 2005-11-07 Pierrick LE GALL + + * 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 ! + +2005-11-07 Pierrick LE GALL * bug 184 fixed: for the third time... diff --git a/language/en_UK.iso-8859-1/admin.lang.php b/language/en_UK.iso-8859-1/admin.lang.php index ea42b3f2a..abced94ae 100644 --- a/language/en_UK.iso-8859-1/admin.lang.php +++ b/language/en_UK.iso-8859-1/admin.lang.php @@ -239,7 +239,7 @@ $lang['remote_site'] = 'Remote site'; $lang['remote_site_already_exists'] = 'This site already exists'; $lang['remote_site_clean'] = 'clean'; $lang['remote_site_clean_hint'] = 'remove remote listing.xml file'; -$lang['remote_site_create'] = 'Create a new site : (give its URL to generate_file_listing.php)'; +$lang['remote_site_create'] = 'Create a new site : (give its URL to create_listing_file.php)'; $lang['remote_site_created'] = 'created'; $lang['remote_site_delete'] = 'delete'; $lang['remote_site_delete_hint'] = 'delete this site and all its attached elements'; diff --git a/language/fr_FR.iso-8859-1/admin.lang.php b/language/fr_FR.iso-8859-1/admin.lang.php index 5f4b3c938..892f06ecf 100644 --- a/language/fr_FR.iso-8859-1/admin.lang.php +++ b/language/fr_FR.iso-8859-1/admin.lang.php @@ -237,7 +237,7 @@ $lang['remote_site'] = 'Site distant'; $lang['remote_site_already_exists'] = 'Ce site existe déjà'; $lang['remote_site_clean'] = 'nettoyer'; $lang['remote_site_clean_hint'] = 'supprimer le fichier listing.xml distant'; -$lang['remote_site_create'] = 'Créer un nouveau site distant : (donner son URL vers generate_file_listing.php)'; +$lang['remote_site_create'] = 'Créer un nouveau site distant : (donner son URL vers create_listing_file.php)'; $lang['remote_site_created'] = 'créé'; $lang['remote_site_delete'] = 'supprimé'; $lang['remote_site_delete_hint'] = 'supprimer ce site distant et toutes les informations associées'; diff --git a/template/yoga/admin/remote_site.tpl b/template/yoga/admin/remote_site.tpl index 13d2e2117..8f41384f6 100644 --- a/template/yoga/admin/remote_site.tpl +++ b/template/yoga/admin/remote_site.tpl @@ -68,14 +68,16 @@ </p> </form> +<!-- BEGIN sites --> <table> <!-- BEGIN site --> <tr> - <td>{site.NAME}</td> - <td>[<a href="{site.U_GENERATE}" title="{L_REMOTE_SITE_GENERATE_HINT}">{L_REMOTE_SITE_GENERATE}</a>]</td> - <td>[<a href="{site.U_UPDATE}" title="{L_REMOTE_SITE_UPDATE_HINT}">{L_REMOTE_SITE_UPDATE}</a>]</td> - <td>[<a href="{site.U_CLEAN}" title="{L_REMOTE_SITE_CLEAN_HINT}">{L_REMOTE_SITE_CLEAN}</a>]</td> - <td>[<a href="{site.U_DELETE}" title="{L_REMOTE_SITE_DELETE_HINT}">{L_REMOTE_SITE_DELETE}</a>]</td> + <td>{sites.site.NAME}</td> + <td>[<a href="{sites.site.U_GENERATE}" title="{L_REMOTE_SITE_GENERATE_HINT}">{L_REMOTE_SITE_GENERATE}</a>]</td> + <td>[<a href="{sites.site.U_UPDATE}" title="{L_REMOTE_SITE_UPDATE_HINT}">{L_REMOTE_SITE_UPDATE}</a>]</td> + <td>[<a href="{sites.site.U_CLEAN}" title="{L_REMOTE_SITE_CLEAN_HINT}">{L_REMOTE_SITE_CLEAN}</a>]</td> + <td>[<a href="{sites.site.U_DELETE}" title="{L_REMOTE_SITE_DELETE_HINT}">{L_REMOTE_SITE_DELETE}</a>]</td> </tr> <!-- END site --> </table> +<!-- END sites -->
\ No newline at end of file |