Skip to content

Commit

Permalink
Don't use a constant not defined in earlier PHPs. (Islandora#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandukart authored and DiegoPino committed Apr 27, 2017
1 parent 83a0781 commit 023de6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions islandora.module
Original file line number Diff line number Diff line change
Expand Up @@ -2094,8 +2094,8 @@ function islandora_conditionally_clear_cache() {
// batches, since they are not in response to GUI actions.
'_batch_process' => 'islandora_schedule_cache_clear_for_batch',
);

foreach (debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS & ~DEBUG_BACKTRACE_PROVIDE_OBJECT) as $frame) {
$options = (version_compare(PHP_VERSION, '5.3.6', '>=') ? DEBUG_BACKTRACE_IGNORE_ARGS & ~DEBUG_BACKTRACE_PROVIDE_OBJECT : FALSE);
foreach (debug_backtrace($options) as $frame) {
$function_name = strtolower($frame['function']);
if (isset($functions[$function_name])) {
$clear = TRUE;
Expand Down

0 comments on commit 023de6e

Please sign in to comment.