- Enforce minimum elapsed time on registration form
[scuttle] / api / tags_get.php
index 2584566127d8bce1eac4c470b5763d3103ae4a58..e731873f5b6eec356610e11a7f59f2a036b711d6 100644 (file)
@@ -5,10 +5,10 @@
 // - tags can't have spaces
 
 // Force HTTP authentication first!
 // - tags can't have spaces
 
 // Force HTTP authentication first!
-require_once('httpauth.inc.php');
-require_once('../header.inc.php');
+require_once 'httpauth.inc.php';
+require_once '../header.inc.php';
 
 
-$tagservice =& ServiceFactory::getServiceInstance('TagService');
+$tagservice  =& ServiceFactory::getServiceInstance('TagService');
 $userservice =& ServiceFactory::getServiceInstance('UserService');
 
 // Get the tags relevant to the passed-in variables.
 $userservice =& ServiceFactory::getServiceInstance('UserService');
 
 // Get the tags relevant to the passed-in variables.
@@ -18,8 +18,7 @@ $tags =& $tagservice->getTags($userservice->getCurrentUserId());
 header('Content-Type: text/xml');
 echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
 echo "<tags>\r\n";
 header('Content-Type: text/xml');
 echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
 echo "<tags>\r\n";
-foreach($tags as $row) {
-    echo "\t<tag count=\"". $row['bCount'] .'" tag="'. filter(convertTag($row['tag'], 'out'), 'xml') ."\" />\r\n";
+foreach ($tags as $row) {
+  echo "\t<tag count=\"". $row['bCount'] .'" tag="'. filter(convertTag($row['tag'], 'out'), 'xml') ."\" />\r\n";
 }
 echo "</tags>";
 }
 echo "</tags>";
-?>
\ No newline at end of file

Benjamin Mako Hill || Want to submit a patch?