Skip to content

Commit

Permalink
fixed typo for config
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Feb 23, 2011
1 parent e5eac01 commit a0228a2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions library/Wozozo/Service/Phperjp/Tool/PhperjpProvider.php
Expand Up @@ -57,7 +57,7 @@ class Wozozo_Service_Phperjp_Tool_PhperjpProvider
protected $responseFormat = '.json';
protected $outputAdapter = 'PhpCode';
protected $serializer;

public function lists()
{
$client = $this->getRestClient();
Expand Down Expand Up @@ -202,14 +202,13 @@ protected function getRestClient()

protected function getSerializer()
{
if (!$this->serializer instanceof Zend_Serializer_Adapter_AdapterInteface) {
if ($outputAdapter = $this->_registry->getConfig()->service->phperjp->ouputadapter) {
if (!$this->serializer instanceof Zend_Serializer_Adapter_AdapterInterface) {
if ($outputAdapter = $this->_registry->getConfig()->service->phperjp->outputadapter) {
$this->outputAdapter = $outputAdapter;
}
$this->serializer = Zend_Serializer::factory($this->outputAdapter);
}

return $this->serializer;
}

}

0 comments on commit a0228a2

Please sign in to comment.