@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $fields->addFieldsToTab('Root.Main', [ |
52 | 52 | $url = TextField::create('IFrameURL', 'Iframe URL'), |
53 | 53 | TextField::create('IFrameTitle', 'Description of contents (title)') |
54 | - ->setDescription(_t(__CLASS__ . '.TITLE_DESCRIPTION', 'Used by screen readers')), |
|
54 | + ->setDescription(_t(__CLASS__.'.TITLE_DESCRIPTION', 'Used by screen readers')), |
|
55 | 55 | ]); |
56 | 56 | $url->setRightTitle( |
57 | 57 | DBField::create_field( |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $allowed_schemes = array('http', 'https'); |
144 | 144 | if ($matches = parse_url($this->IFrameURL)) { |
145 | 145 | if (isset($matches['scheme']) && !in_array($matches['scheme'], $allowed_schemes)) { |
146 | - $result->addError(_t(__CLASS__ . '.VALIDATION_BANNEDURLSCHEME', "This URL scheme is not allowed.")); |
|
146 | + $result->addError(_t(__CLASS__.'.VALIDATION_BANNEDURLSCHEME', "This URL scheme is not allowed.")); |
|
147 | 147 | } |
148 | 148 | } |
149 | 149 |