| 1 | <?php |
||
| 3 | |||
| 4 | use SymphonyCms\Installer\Lib\Migration; |
||
| 5 | use Symphony; |
||
| 6 | |||
| 7 | class migration_266 extends Migration |
||
| 8 | { |
||
| 9 | public static function getVersion() |
||
| 13 | |||
| 14 | public static function getReleaseNotes() |
||
| 18 | |||
| 19 | public static function upgrade() |
||
| 20 | { |
||
| 21 | // Add the upload blacklist (see c763e6a) |
||
| 22 | $blacklist = Symphony::Configuration()->get('upload_blacklist', 'admin'); |
||
| 23 | if (empty($blacklist)) { |
||
| 24 | Symphony::Configuration()->set('upload_blacklist', '/\.(?:php[34567s]?|phtml)$/i', 'admin'); |
||
| 25 | } |
||
| 26 | |||
| 27 | // Update the version information |
||
| 31 |