| @@ -2,18 +2,18 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Displays the settings tab in Polylang settings |
| 4 | 4 | * |
| 5 | 5 | * @package Polylang |
| 6 | + * | |
| 7 | + * @var PLL_Settings_Module[] $modules List of Polylang modules. | |
| 6 | 8 | */ |
| 7 | 9 | |
| 8 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | - exit; // Don't access directly | |
| 10 | -}; | |
| 10 | +defined( 'ABSPATH' ) || exit; | |
| 11 | 11 | ?> |
| 12 | 12 | <div class="form-wrap"> |
| 13 | 13 | <?php |
| 14 | 14 | wp_nonce_field( 'pll_options', '_pll_nonce' ); |
| 15 | 15 | $list_table = new PLL_Table_Settings(); |
| 16 | - $list_table->prepare_items( $this->modules ); | |
| 16 | + $list_table->prepare_items( $modules ); | |
| 17 | 17 | $list_table->display(); |
| 18 | 18 | ?> |
| 19 | 19 | </div> |