Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / authorize.php
index a72e0ac68721a5424a7df72a159812d741d0b262..a965e60b0e9f932c604e9c8943af89f8e69c85e9 100644 (file)
@@ -113,7 +113,7 @@ if ($is_allowed) {
       $page_title = $results['page_title'];
     }
     if (!empty($results['page_message'])) {
-      drupal_set_message($results['page_message']['message'], $results['page_message']['type']);
+      \Drupal::messenger()->addMessage($results['page_message']['message'], $results['page_message']['type']);
     }
 
     $content['authorize_report'] = [
@@ -125,7 +125,7 @@ if ($is_allowed) {
       $links = $results['tasks'];
     }
     else {
-      // Since this is being called outsite of the primary front controller,
+      // Since this is being called outside of the primary front controller,
       // the base_url needs to be set explicitly to ensure that links are
       // relative to the site root.
       // @todo Simplify with https://www.drupal.org/node/2548095