Mercurial > hg > isophonics-drupal-site
comparison core/modules/text/text.module @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
79 return substr($text, 0, $delimiter); | 79 return substr($text, 0, $delimiter); |
80 } | 80 } |
81 | 81 |
82 // Retrieve the filters of the specified text format, if any. | 82 // Retrieve the filters of the specified text format, if any. |
83 if (isset($format)) { | 83 if (isset($format)) { |
84 $filters = FilterFormat::load($format)->filters(); | 84 $filter_format = FilterFormat::load($format); |
85 // If the specified format does not exist, return nothing. $text is already | 85 // If the specified format does not exist, return nothing. $text is already |
86 // filtered text, but the remainder of this function will not be able to | 86 // filtered text, but the remainder of this function will not be able to |
87 // ensure a sane and secure summary. | 87 // ensure a sane and secure summary. |
88 if (!$filters) { | 88 if (!$filter_format || !($filters = $filter_format->filters())) { |
89 return ''; | 89 return ''; |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 // If we have a short body, the entire body is the summary. | 93 // If we have a short body, the entire body is the summary. |