projects
/
scuttle
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added a count of total bookmarks on each page
[scuttle]
/
import.php
diff --git
a/import.php
b/import.php
index 9f2972859b2dbe0168e980aacbcf1ff7acf11fd4..5f0c5eeadbb8104a9818a7890db12b18b43f6eec 100644
(file)
--- a/
import.php
+++ b/
import.php
@@
-80,6
+80,9
@@
function startElement($parser, $name, $attrs) {
case 'TIME':
$bDatetime = $attrVal;
break;
case 'TIME':
$bDatetime = $attrVal;
break;
+ case 'PRIVATE':
+ $bStatus = (strcasecmp('yes', $attrVal) == 0) ? 2 : $status ;
+ break;
case 'TAG':
$tags = strtolower($attrVal);
break;
case 'TAG':
$tags = strtolower($attrVal);
break;
@@
-96,7
+99,7
@@
function startElement($parser, $name, $attrs) {
$bDatetime = gmdate('Y-m-d H:i:s');
}
$bDatetime = gmdate('Y-m-d H:i:s');
}
- if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, $
s
tatus, $tags, $bDatetime, true, true))
+ if ($bookmarkservice->addBookmark($bAddress, $bTitle, $bDescription, $
bS
tatus, $tags, $bDatetime, true, true))
$tplVars['msg'] = T_('Bookmark imported.');
else
$tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.');
$tplVars['msg'] = T_('Bookmark imported.');
else
$tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.');
Benjamin Mako Hill
||
Want to submit a patch?