Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / src / Plugin / views / sort / Thread.php
index 1984934d4703773b1cd68e07e5c209ca521e08b2..353d79911094bc0a33af911a24634eab85c55383 100644 (file)
@@ -16,14 +16,14 @@ class Thread extends SortPluginBase {
   public function query() {
     $this->ensureMyTable();
 
-    //Read comment_render() in comment.module for an explanation of the
-    //thinking behind this sort.
+    // See \Drupal\comment\CommentStorage::loadThread() for an explanation of
+    // the thinking behind this sort.
     if ($this->options['order'] == 'DESC') {
       $this->query->addOrderBy($this->tableAlias, $this->realField, $this->options['order']);
     }
     else {
       $alias = $this->tableAlias . '_' . $this->realField . 'asc';
-      //@todo is this secure?
+      // @todo is this secure?
       $this->query->addOrderBy(NULL, "SUBSTRING({$this->tableAlias}.{$this->realField}, 1, (LENGTH({$this->tableAlias}.{$this->realField}) - 1))", $this->options['order'], $alias);
     }
   }