forked from Cavemanon/cavepaintings
remove regular Extension, have SimpleExtension take its place, optimise the event system based on SimpleExtension methods
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* License: GPLv2
|
||||
* Description: Allows the admin to set min / max image dimentions
|
||||
*/
|
||||
class ResolutionLimit extends SimpleExtension {
|
||||
class ResolutionLimit extends Extension {
|
||||
public function get_priority() {return 40;} // early, to veto ImageUploadEvent
|
||||
|
||||
public function onImageAddition(ImageAdditionEvent $event) {
|
||||
|
Reference in New Issue
Block a user