Version Notes
If you have ideas for improvements or find bugs, please send them to Franck Charpentier at www.auguria.net, with Auguria LastReviews as part of the subject line.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Auguria_Sponsorship |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/community/Auguria/Sponsorship/Helper/Mail.php
CHANGED
@@ -38,13 +38,17 @@ class Auguria_Sponsorship_Helper_Mail extends Mage_Core_Helper_Abstract
|
|
38 |
$url = $this->getSponsorUrl($id, $prenom, $nom, $email);
|
39 |
return $this->__("<a href='%s'>%s</a>", $url, $this->getUrlWtHttp());
|
40 |
}
|
41 |
-
|
42 |
-
|
43 |
{
|
44 |
-
$
|
|
|
|
|
|
|
|
|
45 |
return $url;
|
46 |
}
|
47 |
-
|
48 |
public function htmlToText ($html)
|
49 |
{
|
50 |
$h2t = new Auguria_Sponsorship_Lib_Html2Text($html);
|
38 |
$url = $this->getSponsorUrl($id, $prenom, $nom, $email);
|
39 |
return $this->__("<a href='%s'>%s</a>", $url, $this->getUrlWtHttp());
|
40 |
}
|
41 |
+
|
42 |
+
public function getUrlWtHttp()
|
43 |
{
|
44 |
+
$patterns = array();
|
45 |
+
$patterns[0] = '/^http:\/\//i';
|
46 |
+
$patterns[1] = '/index.php\/*/';
|
47 |
+
$patterns[2] = '/\/$/';
|
48 |
+
$url = preg_replace($patterns, "", Mage::getUrl());
|
49 |
return $url;
|
50 |
}
|
51 |
+
|
52 |
public function htmlToText ($html)
|
53 |
{
|
54 |
$h2t = new Auguria_Sponsorship_Lib_Html2Text($html);
|
app/code/community/Auguria/Sponsorship/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Auguria_Sponsorship>
|
13 |
-
<version>1.0.
|
14 |
</Auguria_Sponsorship>
|
15 |
</modules>
|
16 |
<frontend>
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Auguria_Sponsorship>
|
13 |
+
<version>1.0.2</version>
|
14 |
</Auguria_Sponsorship>
|
15 |
</modules>
|
16 |
<frontend>
|