Fix const not allowed in abstract class for PHP 5.3

HFP-2095-Fix-table-styling
Frode Petterson 2018-09-21 13:08:11 +02:00
parent cfd15d8265
commit d6e9c4ec09
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
*/ */
abstract class H5PMetadata { abstract class H5PMetadata {
const FIELDS = array( private static $fields = array(
'title' => array( 'title' => array(
'type' => 'text', 'type' => 'text',
'maxLength' => 255 'maxLength' => 255
@ -79,7 +79,7 @@ abstract class H5PMetadata {
$metadata = (array) $metadata; $metadata = (array) $metadata;
} }
foreach (self::FIELDS as $key => $config) { foreach (self::$fields as $key => $config) {
if ($key === 'title' && !$include_title) { if ($key === 'title' && !$include_title) {
continue; continue;