mortsubite333/magic — pull request #1 by Jwaxo (2013-09-03 22:51:46+00:00)
Title: Fix for recursive addTpl calls in AJAX returnSummon

Basically there was an error with nested template calls when using returnSummon. The buffer would be returned on every layer instead of echoing, thus losing a nested layer for the next layer's buffer catch. I did a little fiddling with the buffer layer tests to ensure that, if returnSummon was doing the calling, all layers would echo except for the top-most layer, which would return when it was cleaned.

Should work fine, now.