a3ba58dfc0
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@445 b3834d28-1941-0410-a4f8-b48e95affb8f
21 lines
No EOL
537 B
PHP
21 lines
No EOL
537 B
PHP
<?php
|
|
/**
|
|
* We re-use vote.php but set the ajax flag
|
|
*/
|
|
$GLOBALS['ajaxRequest'] = true;
|
|
require 'vote.php';
|
|
|
|
$bs = SemanticScuttle_Service_Factory::get('Bookmark');
|
|
$ts = SemanticScuttle_Service_Factory::get('Template');
|
|
$bmrow = $bs->getBookmark($bookmark);
|
|
|
|
header('Content-Type: text/xml; charset=utf-8');
|
|
echo '<voteresult><bookmark>' . $bookmark . '</bookmark>'
|
|
. '<html xmlns="http://www.w3.org/1999/xhtml">';
|
|
$ts->loadTemplate(
|
|
'bookmarks-vote.inc.tpl.php',
|
|
array('row' => $bmrow)
|
|
);
|
|
|
|
echo '</html></voteresult>';
|
|
?>
|