PluginProbe
Redirection / 2.7
Redirection v2.7
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
← All changes | modules/nginx.php +3 -3 4.22.7 View file →
@@ -3,8 +3,9 @@
3 3 class Nginx_Module extends Red_Module {
4 4 const MODULE_ID = 3;
5 5
6 6 private $location = '';
7 + private $canonical = '';
7 8
8 9 public function get_id() {
9 10 return self::MODULE_ID;
10 11 }
@@ -13,14 +14,13 @@
13 14 return 'Nginx';
14 15 }
15 16
16 17 protected function load( $data ) {
17 - $mine = array( 'location' );
18 + $mine = array( 'location', 'canonical' );
18 19
19 20 foreach ( $mine as $key ) {
20 - if ( isset( $data[ $key ] ) ) {
21 + if ( isset( $data[ $key ] ) )
21 22 $this->$key = $data[ $key ];
22 - }
23 23 }
24 24 }
25 25
26 26 protected function flush_module() {