Skip to content

Commit

Permalink
Merge pull request #14 from thats4shaw/bugfix/php-72-compatibility
Browse files Browse the repository at this point in the history
Use SS_Object for PHP 7.2 compatibility
  • Loading branch information
bendubuisson authored Sep 23, 2019
2 parents 775942d + 5f2395b commit 661e97b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
require_once __DIR__ . '../vendor/autoload.php';
}

if (!class_exists('SS_Object')) class_alias('Object', 'SS_Object');

if (class_exists('ContentController')) {
Object::add_extension('ContentController', 'HashPathExtension');
SS_Object::add_extension('ContentController', 'HashPathExtension');
}

0 comments on commit 661e97b

Please sign in to comment.