Skip to content

Commit

Permalink
Ignore mozilla's "smart" bookmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 8, 2013
1 parent cce0d26 commit e57fd27
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trean/lib/Data/Json.php
Expand Up @@ -39,8 +39,13 @@ protected function _parseJson($data, $container)
$desc = '';
if (!empty($child->annos)) {
foreach ($child->annos as $property) {
if ($property->name == 'bookmarkProperties/description') {
switch ($property->name) {
case 'Places/SmartBookmark':
// Ignore "SmartBookmarks"
continue 3;
case 'bookmarkProperties/description':
$desc = $property->value;
break 2;
}
}
}
Expand Down

0 comments on commit e57fd27

Please sign in to comment.