This commit is contained in:
mensonge 2008-10-22 14:05:59 +00:00
parent c35ab1bf2b
commit a62b9742ee
5 changed files with 549 additions and 544 deletions

View file

@ -40,7 +40,7 @@ function getTitle($url) {
$encoding = strtoupper($matches[1][0]);
// Convert to UTF-8 from the original encoding
if (function_exists('mb_convert_encoding') {
if (function_exists("mb_convert_encoding") {
$title = @mb_convert_encoding($title, 'UTF-8', $encoding);
}
@ -61,6 +61,10 @@ function getTitle($url) {
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<response>
<method>getTitle</method>
<result><?php echo getTitle($_GET['url']); ?></result>
<method>
getTitle
</method>
<result>
<?php echo getTitle($_GET['url']); ?>
</result>
</response>

View file

@ -225,6 +225,7 @@ class BookmarkService {
// if that user is on the logged-in user's watchlist, get the public AND contacts-only
// bookmarks; otherwise, just get the public bookmarks.
// - if the $user is set and IS the logged-in user, then get all bookmarks.
$userservice =& ServiceFactory::getServiceInstance('UserService');
$b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService');
$tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService');