d_seo_module.xml (6986B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <modification> 3 <name>d_seo_module</name> 4 <code>d_seo_module</code> 5 <description>SEO Engine</description> 6 <version>3.0.0</version> 7 <author>Dreamvention</author> 8 <link>http://dreamvention.com</link> 9 10 <!-- VALIDATE & SAVE FORM --> 11 <file path="admin/controller/setting/setting.php"> 12 <operation error="skip"> 13 <search><![CDATA[$this->model_setting_setting->editSetting('config', $this->request->post);]]></search> 14 <add position="before"><![CDATA[ 15 //d_seo_module 16 $this->load->controller('extension/module/d_seo_module/setting_edit_setting'); 17 ///d_seo_module 18 ]]></add> 19 </operation> 20 <operation error="skip"> 21 <search><![CDATA[if ($this->error && !isset($this->error['warning'])) {]]></search> 22 <add position="before"><![CDATA[ 23 //d_seo_module 24 $this->error = $this->load->controller('extension/module/d_seo_module/setting_validate', $this->error); 25 ///d_seo_module 26 ]]></add> 27 </operation> 28 </file> 29 30 <file path="admin/controller/setting/store.php"> 31 <operation error="skip"> 32 <search><![CDATA[if ($this->error && !isset($this->error['warning'])) {]]></search> 33 <add position="before"><![CDATA[ 34 //d_seo_module 35 $this->error = $this->load->controller('extension/module/d_seo_module/store_validate_form', $this->error); 36 ///d_seo_module 37 ]]></add> 38 </operation> 39 </file> 40 41 <file path="admin/controller/catalog/category.php"> 42 <operation error="skip"> 43 <search><![CDATA[if ($this->error && !isset($this->error['warning'])) {]]></search> 44 <add position="before"><![CDATA[ 45 //d_seo_module 46 $this->error = $this->load->controller('extension/module/d_seo_module/category_validate_form', $this->error); 47 ///d_seo_module 48 ]]></add> 49 </operation> 50 </file> 51 52 <file path="admin/controller/catalog/product.php"> 53 <operation error="skip"> 54 <search><![CDATA[if ($this->error && !isset($this->error['warning'])) {]]></search> 55 <add position="before"><![CDATA[ 56 //d_seo_module 57 $this->error = $this->load->controller('extension/module/d_seo_module/product_validate_form', $this->error); 58 ///d_seo_module 59 ]]></add> 60 </operation> 61 </file> 62 63 <file path="admin/controller/catalog/manufacturer.php"> 64 <operation error="skip"> 65 <search><![CDATA[return !$this->error;]]></search> 66 <add position="before" index="1"><![CDATA[ 67 //d_seo_module 68 $this->error = $this->load->controller('extension/module/d_seo_module/manufacturer_validate_form', $this->error); 69 ///d_seo_module 70 ]]></add> 71 </operation> 72 </file> 73 74 <file path="admin/controller/catalog/information.php"> 75 <operation error="skip"> 76 <search><![CDATA[if ($this->error && !isset($this->error['warning'])) {]]></search> 77 <add position="before"><![CDATA[ 78 //d_seo_module 79 $this->error = $this->load->controller('extension/module/d_seo_module/information_validate_form', $this->error); 80 ///d_seo_module 81 ]]></add> 82 </operation> 83 </file> 84 85 <!-- SEO URL --> 86 <file path="catalog/controller/common/seo_url.php"> 87 <operation error="skip"> 88 <search><![CDATA[if ($this->config->get('config_seo_url')) {]]></search> 89 <add position="before"><![CDATA[ 90 //d_seo_module 91 $route_status = isset($this->request->get['route']); 92 93 $this->load->controller('extension/module/d_seo_module/seo_url'); 94 ///d_seo_module 95 ]]></add> 96 </operation> 97 <operation error="skip"> 98 <search><![CDATA[if (isset($this->request->get['_route_'])) {]]></search> 99 <add position="before"><![CDATA[ 100 //d_seo_module 101 if (!$route_status && isset($this->request->get['route'])) return new Action($this->request->get['route']); 102 ///d_seo_module 103 ]]></add> 104 </operation> 105 <operation error="skip"> 106 <search><![CDATA[parse_str($url_info['query'], $data);]]></search> 107 <add position="replace"><![CDATA[ 108 //d_seo_module 109 if (isset($url_info['query'])) parse_str($url_info['query'], $data); 110 ///d_seo_module 111 ]]></add> 112 </operation> 113 </file> 114 115 <file path="catalog/controller/startup/seo_url.php"> 116 <operation error="skip"> 117 <search><![CDATA[if ($this->config->get('config_seo_url')) {]]></search> 118 <add position="before"><![CDATA[ 119 //d_seo_module 120 $route_status = isset($this->request->get['route']); 121 122 $this->load->controller('extension/module/d_seo_module/seo_url'); 123 ///d_seo_module 124 ]]></add> 125 </operation> 126 <operation error="skip"> 127 <search><![CDATA[if (isset($this->request->get['_route_'])) {]]></search> 128 <add position="before"><![CDATA[ 129 //d_seo_module 130 if (!$route_status && isset($this->request->get['route'])) { 131 if (VERSION >= '2.3.0.0') { 132 return true; 133 } else { 134 return new Action($this->request->get['route']); 135 } 136 } 137 ///d_seo_module 138 ]]></add> 139 </operation> 140 <operation error="skip"> 141 <search><![CDATA[parse_str($url_info['query'], $data);]]></search> 142 <add position="replace"><![CDATA[ 143 //d_seo_module 144 if (isset($url_info['query'])) parse_str($url_info['query'], $data); 145 ///d_seo_module 146 ]]></add> 147 </operation> 148 </file> 149 150 <file path="catalog/controller/common/language.php"> 151 <operation error="skip"> 152 <search><![CDATA[if (isset($this->request->post['redirect'])) {]]></search> 153 <add position="before"><![CDATA[ 154 //d_seo_module 155 $this->load->controller('extension/module/d_seo_module/language_language'); 156 ///d_seo_module 157 ]]></add> 158 </operation> 159 </file> 160 161 <!-- FIX Language --> 162 <file path="catalog/controller/common/language.php"> 163 <operation error="skip"> 164 <search><![CDATA[unset($url_data['_route_']);]]></search> 165 <add position="replace"><![CDATA[]]></add> 166 </operation> 167 </file> 168 169 <!-- FIX Startup --> 170 <file path="catalog/controller/startup/startup.php"> 171 <operation error="skip"> 172 <search><![CDATA[$this->config->set('config_url', HTTP_SERVER);]]></search> 173 <add position="after"><![CDATA[ 174 $this->config->set('config_ssl', HTTPS_SERVER); 175 ]]></add> 176 </operation> 177 </file> 178 179 <!-- FIX Pagination --> 180 <file path="system/library/pagination.php"> 181 <operation error="skip"> 182 <search><![CDATA[str_replace('&page={page}', '', $this->url)]]></search> 183 <add position="replace"><![CDATA[str_replace(array('&page={page}', '&page={page}', '?page={page}'), '', $this->url)]]></add> 184 </operation> 185 <operation error="skip"> 186 <search><![CDATA[str_replace(array('&page={page}', '&page={page}'), '', $this->url)]]></search> 187 <add position="replace"><![CDATA[str_replace(array('&page={page}', '&page={page}', '?page={page}'), '', $this->url)]]></add> 188 </operation> 189 </file> 190 191 </modification>