Version Notes
Bug Fix - Parse Query was not being checked and creating log errors. Fixed it.
Download this release
Release Info
Developer | Kathir Vel |
Extension | Optimiseweb_Redirects |
Version | 0.1.9 |
Comparing to | |
See all releases |
Code changes from version 0.1.8 to 0.1.9
- app/code/community/Optimiseweb/Redirects/Block/System/Config/Backend/Download.php +3 -3
- app/code/community/Optimiseweb/Redirects/Block/System/Config/Backend/Download1.php +3 -3
- app/code/community/Optimiseweb/Redirects/Block/System/Config/Backend/Downloadquerystringfile.php +1 -1
- app/code/community/Optimiseweb/Redirects/Helper/Data.php +4 -3
- app/code/community/Optimiseweb/Redirects/Model/Redirector.php +6 -3
- app/code/community/Optimiseweb/Redirects/etc/adminhtml.xml +1 -1
- app/code/community/Optimiseweb/Redirects/etc/config.xml +14 -2
- app/code/community/Optimiseweb/Redirects/etc/system.xml +1 -1
- app/etc/modules/Optimiseweb_Redirects.xml +1 -1
- package.xml +5 -5
app/code/community/Optimiseweb/Redirects/Block/System/Config/Backend/Download.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Block_System_Config_Backend_Download extends Mage_Adminhtml_Block_System_Config_Form_Field
|
@@ -34,7 +34,7 @@ class Optimiseweb_Redirects_Block_System_Config_Backend_Download extends Mage_Ad
|
|
34 |
}
|
35 |
|
36 |
$this->setElement($element);
|
37 |
-
|
38 |
if ($fileName) {
|
39 |
$url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'optimiseweb/redirects/' . $fileName;
|
40 |
$html = "<a href='" . $url . "'>Download</a>";
|
@@ -44,4 +44,4 @@ class Optimiseweb_Redirects_Block_System_Config_Backend_Download extends Mage_Ad
|
|
44 |
return $html;
|
45 |
}
|
46 |
|
47 |
-
}
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Block_System_Config_Backend_Download extends Mage_Adminhtml_Block_System_Config_Form_Field
|
34 |
}
|
35 |
|
36 |
$this->setElement($element);
|
37 |
+
|
38 |
if ($fileName) {
|
39 |
$url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'optimiseweb/redirects/' . $fileName;
|
40 |
$html = "<a href='" . $url . "'>Download</a>";
|
44 |
return $html;
|
45 |
}
|
46 |
|
47 |
+
}
|
app/code/community/Optimiseweb/Redirects/Block/System/Config/Backend/Download1.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Block_System_Config_Backend_Download1 extends Mage_Adminhtml_Block_System_Config_Form_Field
|
@@ -34,7 +34,7 @@ class Optimiseweb_Redirects_Block_System_Config_Backend_Download1 extends Mage_A
|
|
34 |
}
|
35 |
|
36 |
$this->setElement($element);
|
37 |
-
|
38 |
if ($fileName) {
|
39 |
$url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'optimiseweb/redirects/' . $fileName;
|
40 |
$html = "<a href='" . $url . "'>Download</a>";
|
@@ -44,4 +44,4 @@ class Optimiseweb_Redirects_Block_System_Config_Backend_Download1 extends Mage_A
|
|
44 |
return $html;
|
45 |
}
|
46 |
|
47 |
-
}
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Block_System_Config_Backend_Download1 extends Mage_Adminhtml_Block_System_Config_Form_Field
|
34 |
}
|
35 |
|
36 |
$this->setElement($element);
|
37 |
+
|
38 |
if ($fileName) {
|
39 |
$url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'optimiseweb/redirects/' . $fileName;
|
40 |
$html = "<a href='" . $url . "'>Download</a>";
|
44 |
return $html;
|
45 |
}
|
46 |
|
47 |
+
}
|
app/code/community/Optimiseweb/Redirects/Block/System/Config/Backend/Downloadquerystringfile.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Block_System_Config_Backend_Downloadquerystringfile extends Mage_Adminhtml_Block_System_Config_Form_Field
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Block_System_Config_Backend_Downloadquerystringfile extends Mage_Adminhtml_Block_System_Config_Form_Field
|
app/code/community/Optimiseweb/Redirects/Helper/Data.php
CHANGED
@@ -5,9 +5,10 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
-
class Optimiseweb_Redirects_Helper_Data extends Mage_Core_Helper_Abstract
|
|
|
12 |
|
13 |
-
}
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
+
class Optimiseweb_Redirects_Helper_Data extends Mage_Core_Helper_Abstract
|
12 |
+
{
|
13 |
|
14 |
+
}
|
app/code/community/Optimiseweb/Redirects/Model/Redirector.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
-
* @copyright Copyright (c)
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Model_Redirector
|
@@ -102,9 +102,12 @@ class Optimiseweb_Redirects_Model_Redirector
|
|
102 |
$query = parse_url($requestUrl);
|
103 |
$queryUrl = $query['scheme'] . '://' . $query['host'] . $query['path'];
|
104 |
$requestUrl = rtrim($queryUrl, '/');
|
105 |
-
parse_str($query['query'], $queryParts);
|
106 |
|
107 |
-
if (
|
|
|
|
|
|
|
|
|
108 |
|
109 |
$redirectLines = file(Mage::getBaseDir('media') . '/optimiseweb/redirects/' . Mage::getStoreConfig('optimisewebredirects/querystring/upload'));
|
110 |
|
5 |
*
|
6 |
* @package Optimiseweb_Redirects
|
7 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
8 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
9 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
10 |
*/
|
11 |
class Optimiseweb_Redirects_Model_Redirector
|
102 |
$query = parse_url($requestUrl);
|
103 |
$queryUrl = $query['scheme'] . '://' . $query['host'] . $query['path'];
|
104 |
$requestUrl = rtrim($queryUrl, '/');
|
|
|
105 |
|
106 |
+
if (array_key_exists('query', $query)) {
|
107 |
+
parse_str($query['query'], $queryParts);
|
108 |
+
}
|
109 |
+
|
110 |
+
if (isset($queryParts) && is_array($queryParts)) {
|
111 |
|
112 |
$redirectLines = file(Mage::getBaseDir('media') . '/optimiseweb/redirects/' . Mage::getStoreConfig('optimisewebredirects/querystring/upload'));
|
113 |
|
app/code/community/Optimiseweb/Redirects/etc/adminhtml.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
app/code/community/Optimiseweb/Redirects/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
<modules>
|
13 |
<Optimiseweb_Redirects>
|
14 |
-
<version>0.1.
|
15 |
</Optimiseweb_Redirects>
|
16 |
</modules>
|
17 |
|
@@ -30,6 +30,7 @@
|
|
30 |
</frontend>
|
31 |
|
32 |
<adminhtml>
|
|
|
33 |
<menu>
|
34 |
<optimiseweball translate="title" module="ow_redirects">
|
35 |
<title>Optimise Web</title>
|
@@ -43,6 +44,17 @@
|
|
43 |
</children>
|
44 |
</optimiseweball>
|
45 |
</menu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
</adminhtml>
|
47 |
|
48 |
<global>
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
11 |
|
12 |
<modules>
|
13 |
<Optimiseweb_Redirects>
|
14 |
+
<version>0.1.9</version>
|
15 |
</Optimiseweb_Redirects>
|
16 |
</modules>
|
17 |
|
30 |
</frontend>
|
31 |
|
32 |
<adminhtml>
|
33 |
+
|
34 |
<menu>
|
35 |
<optimiseweball translate="title" module="ow_redirects">
|
36 |
<title>Optimise Web</title>
|
44 |
</children>
|
45 |
</optimiseweball>
|
46 |
</menu>
|
47 |
+
|
48 |
+
<translate>
|
49 |
+
<modules>
|
50 |
+
<Optimiseweb_Redirects>
|
51 |
+
<files>
|
52 |
+
<default>Optimiseweb_Redirects.csv</default>
|
53 |
+
</files>
|
54 |
+
</Optimiseweb_Redirects>
|
55 |
+
</modules>
|
56 |
+
</translate>
|
57 |
+
|
58 |
</adminhtml>
|
59 |
|
60 |
<global>
|
app/code/community/Optimiseweb/Redirects/etc/system.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
app/etc/modules/Optimiseweb_Redirects.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
-
* @copyright Copyright (c)
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
3 |
/**
|
4 |
* @package Optimiseweb_Redirects
|
5 |
* @author Kathir Vel (sid@optimiseweb.co.uk)
|
6 |
+
* @copyright Copyright (c) 2014 Optimise Web
|
7 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
*/
|
9 |
-->
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Optimiseweb_Redirects</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,11 +10,11 @@
|
|
10 |
<description>Magento has an internal URL Rewrite Management system. It can be a laborious task to add all your redirects, one by one.
|
11 |

|
12 |
The Optimise Web Redirects extension allows you to upload all your redirect data as a CSV file.</description>
|
13 |
-
<notes>Bug Fix -
|
14 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
15 |
-
<date>
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Redirects"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Optimiseweb_Redirects</name>
|
4 |
+
<version>0.1.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Magento has an internal URL Rewrite Management system. It can be a laborious task to add all your redirects, one by one.
|
11 |

|
12 |
The Optimise Web Redirects extension allows you to upload all your redirect data as a CSV file.</description>
|
13 |
+
<notes>Bug Fix - Parse Query was not being checked and creating log errors. Fixed it.</notes>
|
14 |
<authors><author><name>Kathir Vel</name><user>OptimiseWeb</user><email>info@optimiseweb.co.uk</email></author></authors>
|
15 |
+
<date>2014-02-03</date>
|
16 |
+
<time>00:52:49</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Optimiseweb"><dir name="Redirects"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Backend"><file name="Download.php" hash="7aa495fa61b5dc8701ede38c4e00b343"/><file name="Download1.php" hash="83690ba4e42f356d92aecf3c5ef6d5d3"/><file name="Downloadquerystringfile.php" hash="51b51f70aa042bd09586fd03cfc55125"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="ca14b5ce332105a9a21a0bdc61200919"/></dir><dir name="Model"><file name="Redirector.php" hash="cf45f75d51fb3390ceee612d602ebbf5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f8c1b0efea4f1c17767bf3e5b7c58443"/><file name="config.xml" hash="f8474cd3fff9493b1cfdb54ade225ddd"/><file name="system.xml" hash="21d0a87a63e8651bc5c545d030039c0d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Optimiseweb_Redirects.xml" hash="52171a52ca4993b6d25b51df3b762897"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Optimiseweb_Redirects.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
</package>
|