Skip to content

Commit

Permalink
Merge pull request #62 from Upstatement/adding-timber-init
Browse files Browse the repository at this point in the history
Added call to Timber constructor to fix aliasing error
  • Loading branch information
lggorman authored May 25, 2017
2 parents 597bb76 + fac5ae1 commit 3828268
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stream-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
// included directly in the theme via composer
elseif ( is_dir( get_template_directory() . '/vendor/timber' ) ) {
include_once( get_template_directory() . '/vendor/autoload.php');

// initialize Timber class to run backwards compatibility methods
new Timber\Timber();
}

// Timber is nowhere to be found, throw a notice and return
Expand Down

0 comments on commit 3828268

Please sign in to comment.