Commit f2984613 authored by Gabe Sullice's avatar Gabe Sullice Committed by Sascha Grossenbacher
Browse files

Issue #3214583 by gabesullice: Creating an instance of the class...

Issue #3214583 by gabesullice: Creating an instance of the class Drupal\Core\Database\Query\Condition with the new keyword is deprecated
parent cd412a1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ function redirect_delete_by_path($path, $langcode = NULL, $match_subpaths_and_re
  $database = \Drupal::database();
  $query = $database->select('redirect');
  $query->addField('redirect', 'rid');
  $query_or = new Condition('OR');
  $query_or = $database->condition('OR');
  $query_or->condition('redirect_source__path', $database->escapeLike($path), 'LIKE');
  if ($match_subpaths_and_redirect) {
    $query_or->condition('redirect_source__path', $database->escapeLike($path . '/') . '%', 'LIKE');