[3830] trunk/htdocs/system/classes: Fixing trunk, from weirdness added in r3829.

0 views
Skip to first unread message

svn-N...@habariproject.org

unread,
Nov 25, 2009, 12:07:47 AM11/25/09
to habar...@googlegroups.com
Revision
3830
Author
mikelietz
Date
2009-11-25 05:07:47 +0000 (Wed, 25 Nov 2009)

Log Message

Fixing trunk, from weirdness added in r3829.

Modified Paths

Diff

Modified: trunk/htdocs/system/classes/tag.php (3829 => 3830)


--- trunk/htdocs/system/classes/tag.php	2009-11-25 04:45:07 UTC (rev 3829)
+++ trunk/htdocs/system/classes/tag.php	2009-11-25 05:07:47 UTC (rev 3830)
@@ -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: trunk/htdocs/system/classes/tags.php (3829 => 3830)


--- trunk/htdocs/system/classes/tags.php	2009-11-25 04:45:07 UTC (rev 3829)
+++ trunk/htdocs/system/classes/tags.php	2009-11-25 05:07:47 UTC (rev 3830)
@@ -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