From e4eaf7827a8b821965306b8be4fcbc7a410cbddb Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 6 May 2009 11:50:55 -0400 Subject: [PATCH] Only consider the current user's tags while auto completing, not the entire tag set. --- kronolith/lib/Tagger.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kronolith/lib/Tagger.php b/kronolith/lib/Tagger.php index 802d3a5c0..923f82582 100644 --- a/kronolith/lib/Tagger.php +++ b/kronolith/lib/Tagger.php @@ -181,17 +181,18 @@ class Kronolith_Tagger } /** - * Search for resources are tagged with all of the requested tags. + * Search for resources that are tagged with all of the requested tags. * * @param array $tags An array of tag_names. */ - public function search($tags, $content_type = null) + public function search($tags, $content_type = null, $userId = null) { } /** - * List tags beginning with $token. Used for autocomplete code. + * List tags belonging to the current user beginning with $token. + * Used for autocomplete code. * * @param string $token The token to match the start of the tag with. * @@ -199,7 +200,7 @@ class Kronolith_Tagger */ public function listTags($token) { - return self::$_tagger->getTags(array('q' => $token)); + return self::$_tagger->getTags(array('q' => $token, 'userId' => Auth::getAuth())); } /** -- 2.11.0