Permalink
Browse files

Fixed getCompanyAsUrl() - 5.4.3

  • Loading branch information...
1 parent d97f750 commit 5a18314b6f5df060bc133dc348d217d6fe145ee8 Fabian Beiner committed Oct 2, 2011
Showing with 6 additions and 16 deletions.
  1. +4 −0 README.md
  2. +2 −16 imdb.class.php
View
@@ -16,6 +16,10 @@ Did you know about the available IMDb.com API? The price to use it is around $15
## Changes
+5.4.3
+
+- Fixed getCompanyAsUrl()
+
5.4.2
- Fixed title and trailer
View
@@ -24,7 +24,7 @@
* @author Fabian Beiner (mail@fabian-beiner.de)
* @license MIT License
*
- * @version 5.4.2 (September 22th, 2011)
+ * @version 5.4.3 (October 2nd, 2011)
*/
class IMDBException extends Exception {}
@@ -504,20 +504,6 @@ public function getCompanyAsUrl() {
return $this->strNotFound;
}
return $this->strNotFound;
-
-
- if ($this->isReady) {
- $arrReturned = $this->matchRegex($this->_strSource, IMDB::IMDB_CAST);
- if (count($arrReturned[2])) {
- foreach ($arrReturned[2] as $i => $strName) {
- if ($i >= $intLimit) break;
- $arrReturn[] = '<a href="http://www.imdb.com/name/nm' . $arrReturned[1][$i] . '/">' . $strName . '</a>';
- }
- return implode(' / ', $arrReturn) . ($bolMore && (count($arrReturned[2]) > $intLimit) ? '&hellip;' : '');
- }
- return $this->strNotFound;
- }
- return $this->strNotFound;
}
/**
@@ -990,4 +976,4 @@ public function getSeasons() {
}
return $this->strNotFound;
}
-}
+}

5 comments on commit 5a18314

hello;
genres, cast, director, country, languages not work

Owner

I know. I might fix it when I'm bored sometime.

thanks
I'm very happy

Owner

Get v5.5.0 - this fixes everything.

thanks

Please sign in to comment.