Sommerregen / grav-plugin-themer

This plugin enables you use different themes on one site individual set per page or collection.
Other
18 stars 1 forks source link

TraceableTwigEnvironment not found #2

Closed mplx closed 8 years ago

mplx commented 8 years ago

The plugin doesn't working anymore when debugging is enabled: Class 'Grav\Common\Twig\TraceableTwigEnvironment' not found

TraceableTwigEnvironment has been removed in grav 0.9.43 (commit getgrav/grav@66d5eab041a33143f49ced4781b6096e000bc2be 14 Sep 2015), however themer is still using it (themer.php line 96):

        // Update TwigCollector for DebugBar
        if ($enabled && $debug) {
          $twig->twig = new TraceableTwigEnvironment($twig->twig)
Sommerregen commented 8 years ago

Hi @mplx ,

thanks. Aou are right. Instead of removing the respective lines, I guess for backward-compatibility, I have to implement a check.

UPDATE: Release v1.0.3 fix it.