mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6349 from open-sausages/pulls/4.0/fix-cms-crash
Temp patch to 5987 to prevent cms crashing
This commit is contained in:
commit
d9537eb76b
@ -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