Maintenance: Use __DIR__ instead of dirname( __FILE__ )
authorKevin Israel <pleasestand@live.com>
Wed, 15 Jun 2016 00:14:20 +0000 (20:14 -0400)
committerKevin Israel <pleasestand@live.com>
Wed, 15 Jun 2016 00:44:30 +0000 (20:44 -0400)
commite257d0313fc4b658332b26da17a32f7080252f7c
tree5b95985ec404fbdbbb43663f40c34324909cc376
parent267f63db658dab6592830e1299f9564ece328e36
Maintenance: Use __DIR__ instead of dirname( __FILE__ )

dirname( __FILE__ ) was used because it worked in PHP 5.2, allowing
the version check to function correctly. However, Maintenance.php
now uses the short array syntax, which is a parse error before 5.4:

> Parse error: syntax error, unexpected '[' in maintenance/Maintenance.php
> on line 66

Also, do the same in install.php where it includes Maintenance.php.

Change-Id: I3373a02c684bb6cbde83d7bedc204818f3394602
maintenance/Maintenance.php
maintenance/install.php