-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(7.4): Replace Object with SS_Object
- Loading branch information
jcarter
committed
Jun 3, 2020
1 parent
e9bc07c
commit c91e8ef
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<?php | ||
|
||
// Ensure compatibility with PHP 7.2 ("object" is a reserved word), | ||
// with SilverStripe 3.6 (using Object) and SilverStripe 3.7 (using SS_Object) | ||
if (!class_exists('SS_Object')) class_alias('Object', 'SS_Object'); | ||
|
||
if (($QUEUED_JOBS_DIR = basename(dirname(__FILE__))) != 'queuedjobs') { | ||
die("The queued jobs module must be installed in /queuedjobs, not $QUEUED_JOBS_DIR"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters