X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..3ce5baadaeb81d51bf65df85415fe1adf52f32b2:/api/posts_recent.php diff --git a/api/posts_recent.php b/api/posts_recent.php index 22fc2bd..476eecb 100644 --- a/api/posts_recent.php +++ b/api/posts_recent.php @@ -4,14 +4,14 @@ // Set default and max number of posts $countDefault = 15; -$countMax = 100; +$countMax = 100; // Force HTTP authentication first! -require_once('httpauth.inc.php'); -require_once('../header.inc.php'); +require_once 'httpauth.inc.php'; +require_once '../header.inc.php'; $bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService'); -$userservice =& ServiceFactory::getServiceInstance('UserService'); +$userservice =& ServiceFactory::getServiceInstance('UserService'); // Check to see if a tag was specified. if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != '')) @@ -41,7 +41,7 @@ header('Content-Type: text/xml'); echo '\r\n"; echo '\r\n"; -foreach($bookmarks['bookmarks'] as $row) { +foreach ($bookmarks['bookmarks'] as $row) { if (is_null($row['bDescription']) || (trim($row['bDescription']) == '')) $description = ''; else @@ -60,4 +60,3 @@ foreach($bookmarks['bookmarks'] as $row) { } echo ''; -?> \ No newline at end of file