git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@150 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
parent
c35ab1bf2b
commit
a62b9742ee
5 changed files with 549 additions and 544 deletions
|
@ -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>
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue