slackero / phpwcms

Flexible, fast, powerful, customer, developer friendly web content management system and cms framework
http://www.phpwcms.org
GNU General Public License v2.0
92 stars 45 forks source link

Bug: backend/de/lang.inc.php #208

Closed grieselbaer closed 7 years ago

grieselbaer commented 7 years ago

Hello!

After a clean install of the actual github version on two different servers I got only a blank white login.php page and this error: PHP Parse error: syntax error, unexpected '[' in /include/inc_lang/backend/de/lang.inc.php on line 1030

After change this line from $BL['be_admin_optgroup_label'] = [1 => 'Text', 2 => 'Bild', 3 => 'Formular', 4 => 'Admin', 5 => 'Spezial']; to $BL['be_admin_optgroup_label'] = array(1 => 'Text', 2 => 'Bild', 3 => 'Formular', 4 => 'Admin', 5 => 'Spezial'); everything seems ok

Bye grieselbaer

slackero commented 7 years ago

Do not use outdated PHP versions for new installations, I recommend PHP 5.6 for older branch. [] instead of array() is supported since 5.4 http://php.net/manual/de/migration54.new-features.php