Merge branch 'MDL-72626-311' of https://github.com/sarjona/moodle into MOODLE_311_STABLE
This commit is contained in:
+14
-12
@@ -270,17 +270,19 @@ class RTLCSS {
|
||||
$groups = [$value];
|
||||
}
|
||||
foreach ($groups as $group) {
|
||||
$values = $group->getListComponents();
|
||||
switch (count($values)) {
|
||||
case 2:
|
||||
$group->setListComponents(array_reverse($values));
|
||||
break;
|
||||
case 3:
|
||||
$group->setListComponents([$values[1], $values[0], $values[1], $values[2]]);
|
||||
break;
|
||||
case 4:
|
||||
$group->setListComponents([$values[1], $values[0], $values[3], $values[2]]);
|
||||
break;
|
||||
if ($group instanceof RuleValueList) {
|
||||
$values = $group->getListComponents();
|
||||
switch (count($values)) {
|
||||
case 2:
|
||||
$group->setListComponents(array_reverse($values));
|
||||
break;
|
||||
case 3:
|
||||
$group->setListComponents([$values[1], $values[0], $values[1], $values[2]]);
|
||||
break;
|
||||
case 4:
|
||||
$group->setListComponents([$values[1], $values[0], $values[3], $values[2]]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -354,7 +356,7 @@ class RTLCSS {
|
||||
|
||||
$value = $parts[0];
|
||||
// The first value may be referencing top or bottom (y instead of x).
|
||||
if (!is_object($value) && preg_match('/top|bottom/i', $value)) {
|
||||
if (!is_object($value) && preg_match('/top|bottom/i', $value) && count($parts)>1) {
|
||||
$value = $parts[1];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
RTLCSS
|
||||
------
|
||||
|
||||
Import git ref: v1.0.0
|
||||
|
||||
Downloaded from: https://github.com/moodlehq/rtlcss-php
|
||||
|
||||
Import procedure:
|
||||
|
||||
@@ -230,7 +230,7 @@
|
||||
<location>rtlcss</location>
|
||||
<name>RTLCSS for PHP</name>
|
||||
<license>MIT</license>
|
||||
<version>1.0.0</version>
|
||||
<version>1.0.1</version>
|
||||
</library>
|
||||
<library>
|
||||
<location>scssphp</location>
|
||||
|
||||
Reference in New Issue
Block a user