Fix const not allowed in abstract class for PHP 5.3
parent
cfd15d8265
commit
d6e9c4ec09
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue