@@ -63,6 +63,7 @@ public function site()
63
63
'allow_alerts ' => '' ,
64
64
'allow_reports ' => '' ,
65
65
'allow_comments ' => '' ,
66
+ 'max_upload_size ' => '' ,
66
67
'allow_feed ' => '' ,
67
68
'allow_feed_category ' => '' ,
68
69
'feed_geolocation_user ' => '' ,
@@ -108,6 +109,7 @@ public function site()
108
109
$ post ->add_rules ('blocks_per_row ' ,'required ' ,'numeric ' );
109
110
$ post ->add_rules ('allow_alerts ' ,'required ' ,'between[0,1] ' );
110
111
$ post ->add_rules ('allow_reports ' ,'required ' ,'between[0,1] ' );
112
+ $ post ->add_rules ('max_upload_size ' ,'length[0,50] ' , 'alpha_numeric ' );
111
113
$ post ->add_rules ('allow_comments ' ,'required ' ,'between[0,2] ' );
112
114
$ post ->add_rules ('allow_feed ' ,'required ' ,'between[0,1] ' );
113
115
$ post ->add_rules ('allow_feed_category ' ,'required ' ,'between[0,1] ' );
@@ -264,6 +266,7 @@ public function site()
264
266
'allow_alerts ' => $ settings ['allow_alerts ' ],
265
267
'allow_reports ' => $ settings ['allow_reports ' ],
266
268
'allow_comments ' => $ settings ['allow_comments ' ],
269
+ 'max_upload_size ' => $ settings ['max_upload_size ' ],
267
270
'allow_feed ' => $ settings ['allow_feed ' ],
268
271
'allow_feed_category ' => $ settings ['allow_feed_category ' ],
269
272
'feed_geolocation_user ' => isset ($ settings ['feed_geolocation_user ' ]) ? $ settings ['feed_geolocation_user ' ] : null ,
0 commit comments