Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
cdowdy committed Aug 29, 2017
1 parent 65396b9 commit 30d2237
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/BetterThumbsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Bolt\Extension\cdowdy\betterthumbs\Providers\BetterThumbsProvider;
use Bolt\Extension\SimpleExtension;
use Bolt\Menu\MenuEntry;
use Bolt\Version as Version;
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;

Expand Down Expand Up @@ -878,9 +879,16 @@ protected function registerBackendControllers()
{
$config = $this->getConfig();

return [
'/extend/betterthumbs' => new BetterThumbsBackendController( $config ),
];
if ( Version::compare('3.3.0', '>=')) {
return [
'/extensions/betterthumbs' => new BetterThumbsBackendController( $config ),
];
} else {
return [
'/extend/betterthumbs' => new BetterThumbsBackendController( $config ),
];
}

}

/**
Expand Down

0 comments on commit 30d2237

Please sign in to comment.