| @@ -107,8 +107,12 @@ | ||
| 107 | 107 | $file_type = $this->get_param( 'platform', 'elementor' ); |
| 108 | 108 | $id = $this->get_param( 'id', 0, 'intval' ); |
| 109 | 109 | $workspace_id = $this->get_param( 'workspace_id', 0, 'intval' ); |
| 110 | 110 | |
| 111 | + if( $file_type === 'elementor' && ! class_exists('Elementor\TemplateLibrary\Source_Local') ) { | |
| 112 | + return $this->error( 'required_elementor', __("Missing required dependency Elementor, please install before trying again.", "templately"), 'clouds/upload', 400 ); | |
| 113 | + } | |
| 114 | + | |
| 111 | 115 | if( empty( $file_content ) ) { |
| 112 | 116 | /** |
| 113 | 117 | * @var Platform $platform |
| 114 | 118 | */ |