Skip to content

Commit

Permalink
Removed extra comma creating a warning/error on local env
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-cyber-duck authored and ccordina committed Jan 20, 2022
1 parent d52ef6d commit f0545d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Model/Extension/SeoPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ public function updateCMSFields(FieldList $fields)
Config::inst()->get('CyberDuck\SEO\SocialImage', 'min_file_width'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'min_file_height'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'max_file_size'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'file_aspect_ratio'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'file_aspect_ratio')
));
$uploader->getValidator()->setAllowedMaxFileSize(['*' => (int)Config::inst()->get('CyberDuck\SEO\SocialImage', 'max_file_size') * 1024 * 1024]);

if(class_exists(BlogPost::class)) {
if($this->owner instanceof BlogPost) {
if($this->owner->Parent()->UseFeaturedAsSocialImage == 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Extension/SeoSiteConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function updateCMSFields(FieldList $fields)
Config::inst()->get('CyberDuck\SEO\SocialImage', 'min_file_width'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'min_file_height'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'max_file_size'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'file_aspect_ratio'),
Config::inst()->get('CyberDuck\SEO\SocialImage', 'file_aspect_ratio')
));
$uploader->getValidator()->setAllowedMaxFileSize(['*' => (int)Config::inst()->get('CyberDuck\SEO\SocialImage', 'max_file_size') * 1024 * 1024]);
$fields->addFieldToTab('Root.SEO', $uploader);
Expand Down

0 comments on commit f0545d8

Please sign in to comment.