Fixed a PHP syntax error with arrays (#160)
This commit is contained in:
parent
cafd3dd84e
commit
ba778998dd
@ -14,17 +14,17 @@ class Photo extends Module {
|
|||||||
private $settings = null;
|
private $settings = null;
|
||||||
private $photoIDs = null;
|
private $photoIDs = null;
|
||||||
|
|
||||||
private $allowedTypes = [
|
private $allowedTypes = array(
|
||||||
IMAGETYPE_JPEG,
|
IMAGETYPE_JPEG,
|
||||||
IMAGETYPE_GIF,
|
IMAGETYPE_GIF,
|
||||||
IMAGETYPE_PNG
|
IMAGETYPE_PNG
|
||||||
];
|
);
|
||||||
private $validExtensions = [
|
private $validExtensions = array(
|
||||||
'.jpg',
|
'.jpg',
|
||||||
'.jpeg',
|
'.jpeg',
|
||||||
'.png',
|
'.png',
|
||||||
'.gif'
|
'.gif'
|
||||||
];
|
);
|
||||||
|
|
||||||
public function __construct($database, $plugins, $settings, $photoIDs) {
|
public function __construct($database, $plugins, $settings, $photoIDs) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user