| @@ -16,15 +16,8 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | public $priority = 10; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * The page id of the static front page. | |
| 21 | - * | |
| 22 | - * @var int | |
| 23 | - */ | |
| 24 | - protected $page_on_front; | |
| 25 | - | |
| 26 | - /** | |
| 27 | 20 | * Constructor |
| 28 | 21 | * |
| 29 | 22 | * @since 1.8 |
| 30 | 23 | * |
| @@ -40,8 +33,9 @@ | ||
| 40 | 33 | 'configure' => true, |
| 41 | 34 | ) |
| 42 | 35 | ); |
| 43 | 36 | |
| 37 | + $this->links_model = &$polylang->links_model; | |
| 44 | 38 | $this->page_on_front = &$polylang->static_pages->page_on_front; |
| 45 | 39 | } |
| 46 | 40 | |
| 47 | 41 | /** |
| @@ -47,10 +41,8 @@ | ||
| 47 | 41 | /** |
| 48 | 42 | * Displays the fieldset to choose how the language is set |
| 49 | 43 | * |
| 50 | 44 | * @since 1.8 |
| 51 | - * | |
| 52 | - * @return void | |
| 53 | 45 | */ |
| 54 | 46 | protected function force_lang() { |
| 55 | 47 | ?> |
| 56 | 48 | <label> |
| @@ -114,10 +106,8 @@ | ||
| 114 | 106 | /** |
| 115 | 107 | * Displays the fieldset to choose to hide the default language information in url |
| 116 | 108 | * |
| 117 | 109 | * @since 1.8 |
| 118 | - * | |
| 119 | - * @return void | |
| 120 | 110 | */ |
| 121 | 111 | protected function hide_default() { |
| 122 | 112 | ?> |
| 123 | 113 | <label> |
| @@ -135,10 +125,8 @@ | ||
| 135 | 125 | /** |
| 136 | 126 | * Displays the fieldset to choose to hide /language/ in url |
| 137 | 127 | * |
| 138 | 128 | * @since 1.8 |
| 139 | - * | |
| 140 | - * @return void | |
| 141 | 129 | */ |
| 142 | 130 | protected function rewrite() { |
| 143 | 131 | ?> |
| 144 | 132 | <label> |
| @@ -169,10 +157,8 @@ | ||
| 169 | 157 | /** |
| 170 | 158 | * Displays the fieldset to choose to redirect the home page to language page |
| 171 | 159 | * |
| 172 | 160 | * @since 1.8 |
| 173 | - * | |
| 174 | - * @return void | |
| 175 | 161 | */ |
| 176 | 162 | protected function redirect_lang() { |
| 177 | 163 | ?> |
| 178 | 164 | <label> |
| @@ -203,10 +189,8 @@ | ||
| 203 | 189 | /** |
| 204 | 190 | * Displays the settings |
| 205 | 191 | * |
| 206 | 192 | * @since 1.8 |
| 207 | - * | |
| 208 | - * @return void | |
| 209 | 193 | */ |
| 210 | 194 | public function form() { |
| 211 | 195 | ?> |
| 212 | 196 | <div class="pll-settings-url-col"> |
| @@ -245,9 +229,8 @@ | ||
| 245 | 229 | * |
| 246 | 230 | * @since 1.8 |
| 247 | 231 | * |
| 248 | 232 | * @param array $options |
| 249 | - * @return array | |
| 250 | 233 | */ |
| 251 | 234 | protected function update( $options ) { |
| 252 | 235 | $newoptions = array(); |
| 253 | 236 | |
| @@ -301,9 +284,8 @@ | ||
| 301 | 284 | * |
| 302 | 285 | * @since 1.8 |
| 303 | 286 | * |
| 304 | 287 | * @param array $options new set of options to test |
| 305 | - * @return void | |
| 306 | 288 | */ |
| 307 | 289 | protected function check_domains( $options ) { |
| 308 | 290 | $options = array_merge( $this->options, $options ); |
| 309 | 291 | $model = new PLL_Model( $options ); |