Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2
This commit is contained in:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -149,7 +149,7 @@ class Random {
|
|||
$num_cons = count($cons);
|
||||
$word = '';
|
||||
|
||||
while(strlen($word) < $length){
|
||||
while (strlen($word) < $length) {
|
||||
$word .= $cons[mt_rand(0, $num_cons - 1)] . $vowels[mt_rand(0, $num_vowels - 1)];
|
||||
}
|
||||
|
||||
|
@ -251,7 +251,7 @@ class Random {
|
|||
public function paragraphs($paragraph_count = 12) {
|
||||
$output = '';
|
||||
for ($i = 1; $i <= $paragraph_count; $i++) {
|
||||
$output .= $this->sentences(mt_rand(20, 60)) ."\n\n";
|
||||
$output .= $this->sentences(mt_rand(20, 60)) . "\n\n";
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
@ -291,7 +291,7 @@ class Random {
|
|||
$smaller_dimension = ($smaller_dimension % 2) ? $smaller_dimension : $smaller_dimension;
|
||||
imageellipse($im, $width / 2, $height / 2, $smaller_dimension, $smaller_dimension, $color);
|
||||
|
||||
$save_function = 'image'. ($extension == 'jpg' ? 'jpeg' : $extension);
|
||||
$save_function = 'image' . ($extension == 'jpg' ? 'jpeg' : $extension);
|
||||
$save_function($im, $destination);
|
||||
return $destination;
|
||||
}
|
||||
|
|
|
@ -122,8 +122,7 @@ class UserAgent {
|
|||
$qvalue = $ua_langcodes[$prefix];
|
||||
break;
|
||||
}
|
||||
}
|
||||
while ($prefix = substr($prefix, 0, strrpos($prefix, '-')));
|
||||
} while ($prefix = substr($prefix, 0, strrpos($prefix, '-')));
|
||||
|
||||
// Find the best match.
|
||||
if ($qvalue > $max_qvalue) {
|
||||
|
|
|
@ -116,7 +116,6 @@ class Xss {
|
|||
* @ingroup sanitization
|
||||
*
|
||||
* @see \Drupal\Component\Utility\Xss::getAdminTagList()
|
||||
*
|
||||
*/
|
||||
public static function filterAdmin($string) {
|
||||
return static::filter($string, static::$adminTags);
|
||||
|
@ -344,4 +343,5 @@ class Xss {
|
|||
public static function getHtmlTagList() {
|
||||
return static::$htmlTags;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue