[3828] branches/tags_as_terms/system/classes: branch: tags_as_terms Revert 3827, mistakes from a botched merge.

0 views
Skip to first unread message

svn-N...@habariproject.org

unread,
Nov 24, 2009, 11:37:48 PM11/24/09
to habar...@googlegroups.com
Revision
3828
Author
mikelietz
Date
2009-11-25 04:37:47 +0000 (Wed, 25 Nov 2009)

Log Message

branch:tags_as_terms Revert 3827, mistakes from a botched merge.

Modified Paths

Diff

Modified: branches/tags_as_terms/system/classes/tag.php (3827 => 3828)


--- branches/tags_as_terms/system/classes/tag.php	2009-11-25 04:26:39 UTC (rev 3827)
+++ branches/tags_as_terms/system/classes/tag.php	2009-11-25 04:37:47 UTC (rev 3828)
@@ -57,31 +57,6 @@
 	}
 
 	/**
-	 * function __get
-	 * Overrides QueryRecord __get to implement custom object properties
-	 * @param string Name of property to return
-	 * @return mixed The requested field value
-	 **/
-	public function __get( $name )
-	{
-		switch ($name) {
-			case 'tag':
-				$out = parent::__get( 'tag_text' );
-				break;
-			case 'slug':
-				$out = parent::__get( 'tag_slug' );
-				break;
-			case 'count':
-				$out = $this->get_count();
-				break;
-			default:
-				$out = parent::__get( $name );
-				break;
-		}
-		return $out;
-	}
-
-	/**
 	 * Return a single requested tag.
 	 *
 	 * <code>

Modified: branches/tags_as_terms/system/classes/tags.php (3827 => 3828)


--- branches/tags_as_terms/system/classes/tags.php	2009-11-25 04:26:39 UTC (rev 3827)
+++ branches/tags_as_terms/system/classes/tags.php	2009-11-25 04:37:47 UTC (rev 3828)
@@ -17,7 +17,7 @@
 	 * Returns a tag or tags based on supplied parameters.
 	 * @return array An array of Tag objects
 	 **/
-	public static function get( $paramarray = array() )
+	public static function get()
 	{
 		$tags = array();
 		$terms = Vocabulary::get( self::$vocabulary )->get_tree();
@@ -66,7 +66,6 @@
 
 		$post_ids = array();
 		$tag_names = array();
-		$post_ids = array();
 
 		// get array of existing tags first to make sure we don't conflict with a new master tag
 		foreach ( $tags as $tag ) {
Reply all
Reply to author
Forward
0 new messages