msgstr ""
"Project-Id-Version: Scuttle\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-02-19 10:28+0100\n"
-"PO-Revision-Date: 2008-02-19 10:29+0100\n"
+"POT-Creation-Date: 2008-02-19 15:30+0100\n"
+"PO-Revision-Date: 2008-02-19 15:31+0100\n"
"Last-Translator: BenjaminHKB <benjamin.huynh-kim-bang@loria.fr>\n"
"Language-Team: fr-FR <toony.sf@chezouam.net>\n"
"MIME-Version: 1.0\n"
#: ../../../templates/bookmarkcommondescriptionedit.tpl.php:28
#: ../../../templates/tagcommondescriptionedit.tpl.php:21
-msgid "Last modification: "
+msgid "Last modification:"
msgstr "Dernière modification :"
#: ../../../templates/bookmarkcommondescriptionedit.tpl.php:39
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-02-19 10:28+0100\n"
+"POT-Creation-Date: 2008-02-19 15:30+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: ../../../templates/bookmarkcommondescriptionedit.tpl.php:28
#: ../../../templates/tagcommondescriptionedit.tpl.php:21
-msgid "Last modification: "
+msgid "Last modification:"
msgstr ""
#: ../../../templates/bookmarkcommondescriptionedit.tpl.php:39
}
function addTagDescription($tag, $desc, $uId, $time) {
+ // Check if no modification
+ $lastDesc = $this->getLastTagDescription($tag);
+ if($lastDesc['cdDescription'] == $desc) {
+ return true;
+ }
+
+ // If modification
$datetime = gmdate('Y-m-d H:i:s', $time);
$values = array('tag'=>$tag, 'cdDescription'=>$desc, 'uId'=>$uId, 'cdDatetime'=>$datetime);
$sql = 'INSERT INTO '. $this->getTableName() .' '. $this->db->sql_build_array('INSERT', $values);
}
function addBookmarkDescription($bHash, $title, $desc, $uId, $time) {
+ // Check if no modification
+ $lastDesc = $this->getLastBookmarkDescription($bHash);
+ if($lastDesc['cdTitle'] == $title && $lastDesc['cdDescription'] == $desc) {
+ return true;
+ }
+
+ // If modification
$datetime = gmdate('Y-m-d H:i:s', $time);
$values = array('bHash'=>$bHash, 'cdTitle'=>$title, 'cdDescription'=>$desc, 'uId'=>$uId, 'cdDatetime'=>$datetime);
$sql = 'INSERT INTO '. $this->getTableName() .' '. $this->db->sql_build_array('INSERT', $values);
<td>
<?php
if(strlen($description['cdDatetime'])>0) {
- echo T_('Last modification: ').$description['cdDatetime'].', ';
+ echo T_('Last modification:').' '.$description['cdDatetime'].', ';
$lastUser = $userservice->getUser($description['uId']);
- echo $lastUser['username'];
+ echo '<a href="'.createURL('profile', $lastUser['username']).'">'.$lastUser['username'].'</a>';
}
?>
</td>
<td>
<?php
if(strlen($description['cdDatetime'])>0) {
- echo T_('Last modification: ').$description['cdDatetime'].', ';
+ echo T_('Last modification:').' '.$description['cdDatetime'].', ';
$lastUser = $userservice->getUser($description['uId']);
- echo $lastUser['username'];
+ echo '<a href="'.createURL('profile', $lastUser['username']).'">'.$lastUser['username'].'</a>';
}
?>
</td>