mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Temp patch to 5987 to prevent cms crashing
This commit is contained in:
parent
7c23443fb6
commit
6107f45d1e
@ -689,12 +689,15 @@ class ShortcodeParser extends Object
|
||||
}
|
||||
|
||||
$location = self::INLINE;
|
||||
/**
|
||||
* Below code disabled due to https://github.com/silverstripe/silverstripe-framework/issues/5987
|
||||
if ($class == 'left' || $class == 'right') {
|
||||
$location = self::BEFORE;
|
||||
}
|
||||
if ($class == 'center' || $class == 'leftAlone') {
|
||||
$location = self::SPLIT;
|
||||
}
|
||||
*/
|
||||
|
||||
if (!$parent) {
|
||||
if ($location !== self::INLINE) {
|
||||
|
@ -188,6 +188,9 @@ class ShortcodeParserTest extends SapphireTest {
|
||||
}
|
||||
|
||||
public function testtExtract() {
|
||||
$this->markTestSkipped(
|
||||
'Feature disabled due to https://github.com/silverstripe/silverstripe-framework/issues/5987'
|
||||
);
|
||||
// Left extracts to before the current block
|
||||
$this->assertEqualsIgnoringWhitespace(
|
||||
'Code<div>FooBar</div>',
|
||||
|
Loading…
Reference in New Issue
Block a user