Permalink
Browse files

Allow setting debug in constructor to debug early

  • Loading branch information...
1 parent 68c35f0 commit 4d8fcb9d7bce5d039cfdcc47d0dd87036d7584ff @amenk committed Apr 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc.php
View
3 xbmc.php
@@ -295,7 +295,8 @@ public function rpc($method, $params = null) {
class xbmcJson extends xbmcJsonRPC {
- public function __construct(xbmcHost $xbmcHost) {
+ public function __construct(xbmcHost $xbmcHost, $debug = false) {
+ $this->setDebug($debug);
parent::setUrl($xbmcHost->url());
$this->populateCommands($this->rpc("JSONRPC.Introspect")->methods);
}

0 comments on commit 4d8fcb9

Please sign in to comment.