silverstripe-autotoc 

silverstripe-autotoc Commit Details

Date:2017-12-21 19:03:44 (3 years 28 days ago)
Author:Nicola Fontana
Branch:dev, master
Commit:b2314120e104a262f7fc2d431ed8d9fb23aae6c1
Parents: 94378c699b4c44dde3f2064616f49ab31d3c7caf
Message:Fix Tocifier instantiation call

Changes:
Msrc/AutotocExtension.php (1 diff)

File differences

src/AutotocExtension.php
110110
111111
112112
113
113
114
115
116
114117
115118
116119
private function getTocifier()
{
if (is_null($this->tocifier)) {
$tocifier = Injector::inst()->create('Tocifier');
$tocifier = Injector::inst()->create(
'eNTiDi\Autotoc\Tocifier',
$this->getHtml()
);
// TODO: not sure this is the best approach... maybe I
// should look to $this->owner->dataRecord before
$config = Config::inst()->get(__CLASS__, 'augment_callback');

Archive Download the corresponding diff file