Browse files

Merge pull request #2 from jonursenbach/master

Fixed some bugs and updated a method to stay consistent.
  • Loading branch information...
2 parents a5c3118 + 963ce7a commit 104a53f5c0ac692f29aa254d3b443bf81da38461 @niallkennedy committed Sep 6, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 objects.php
View
6 objects.php
@@ -198,7 +198,7 @@ public function addAuthor( $author_uri ) {
* High-level section name
*/
public function getSection() {
- return $this->section();
+ return $this->section;
}
/**
@@ -606,10 +606,14 @@ public function getWriters() {
* Add a writer profile URL
*
* @param string $url writer profile URL
+ *
+ * @return OpenGraphProtocolVideoObject
*/
public function addWriter( $url ) {
if ( static::is_valid_url($url) && !in_array($url, $this->writer) )
$this->writer[] = $url;
+
+ return $this;
}
/**

0 comments on commit 104a53f

Please sign in to comment.