| @@ -30,11 +30,11 @@ | ||
| 30 | 30 | |
| 31 | 31 | $item_ids = $records[ $tb_type ]; |
| 32 | 32 | |
| 33 | 33 | if ( in_array( $tb_type, array( 'styles', 'actions' ), true ) ) { |
| 34 | - include __DIR__ . '/posts_xml.php'; | |
| 35 | - } elseif ( file_exists( __DIR__ . '/' . $tb_type . '_xml.php' ) ) { | |
| 36 | - include __DIR__ . '/' . $tb_type . '_xml.php'; | |
| 34 | + include dirname( __FILE__ ) . '/posts_xml.php'; | |
| 35 | + } elseif ( file_exists( dirname( __FILE__ ) . '/' . $tb_type . '_xml.php' ) ) { | |
| 36 | + include dirname( __FILE__ ) . '/' . $tb_type . '_xml.php'; | |
| 37 | 37 | } elseif ( FrmAppHelper::pro_is_installed() && file_exists( FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php' ) ) { |
| 38 | 38 | include FrmProAppHelper::plugin_path() . '/classes/views/xml/' . $tb_type . '_xml.php'; |
| 39 | 39 | } |
| 40 | 40 | |