diff --git a/src/PubSubHubbub/Model/AbstractModel.php b/src/PubSubHubbub/Model/AbstractModel.php index 3862a4c3..023fe8ed 100644 --- a/src/PubSubHubbub/Model/AbstractModel.php +++ b/src/PubSubHubbub/Model/AbstractModel.php @@ -29,7 +29,7 @@ class AbstractModel public function __construct(TableGatewayInterface $tableGateway = null) { if ($tableGateway === null) { - $parts = explode('\\', get_called_class()); + $parts = explode('\\', get_class($this)); $table = strtolower(array_pop($parts)); $this->db = new TableGateway($table, null); } else { diff --git a/src/Writer/Renderer/AbstractRenderer.php b/src/Writer/Renderer/AbstractRenderer.php index 199ad597..c630fdf2 100644 --- a/src/Writer/Renderer/AbstractRenderer.php +++ b/src/Writer/Renderer/AbstractRenderer.php @@ -218,7 +218,7 @@ protected function _loadExtensions() Writer\Writer::registerCoreExtensions(); $manager = Writer\Writer::getExtensionManager(); $all = Writer\Writer::getExtensions(); - if (stripos(get_called_class(), 'entry')) { + if (stripos(get_class($this), 'entry')) { $exts = $all['entryRenderer']; } else { $exts = $all['feedRenderer'];