goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

Error with chunk bindings #18

Closed argnist closed 11 years ago

argnist commented 11 years ago

You forgot to replace $tpl to $tplChunk in lines: $tplChunk = ltrim($tpl, ':'); $tplChunk = trim($tpl); ... $chunk = $this->modx->getParser()->getElement('modChunk', $tpl);

So with such binding no chunk can be found. https://github.com/goldsky/FileDownload-R/blob/master/core/components/filedownloadr/models/filedownload/filedownload.class.php

goldsky commented 11 years ago

fixed here https://github.com/goldsky/FileDownload-R/commit/65becfc9bfe5a15201858d382b73515b0200a400

thx for reporting