| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Base; |
| 8 | 8 | |
| 9 | +defined( 'ABSPATH' ) || exit; | |
| 10 | + | |
| 9 | 11 | use Exception; |
| 10 | 12 | use Timetics\Utils\Validator; |
| 11 | 13 | |
| 12 | 14 | /** |
| @@ -69,9 +71,9 @@ | ||
| 69 | 71 | case 'text/csv': |
| 70 | 72 | $this->data = CsvReader::get_data( $file_name ); |
| 71 | 73 | break; |
| 72 | 74 | default: |
| 73 | - throw new Exception( __( 'You must provide a valid file type', 'timetics' ) ); | |
| 75 | + throw new Exception( esc_html__( 'You must provide a valid file type', 'timetics' ) ); | |
| 74 | 76 | } |
| 75 | 77 | |
| 76 | 78 | $this->set_total_row(); |
| 77 | 79 | } |