Ce mémo a été publié le 16 août 2010 et peut contenir des informations qui peuvent être incomplètes, non mises à jour voir erronées du fait de son ancienneté.
N'hésitez pas à compléter votre recherche sur des articles plus récents.
Si vous devez installer un serveur de dev avec Magento, vous devez avoir une adresse e-mail qui n’est pas forcément reconnue par Magento.
Attention à ne pas faire cette manipulation sur un serveur en production !!
Il suffit de modifier le fichier : /lib/Zend/Validate/EmailAddress.php
Tout à la fin, return true dans tous les cas :
|
|
<span style="vertical-align: top;"><span style="color: #339933;">...</span></span> <span style="vertical-align: top;"><span style="color: #339933;">...</span></span> <span style="vertical-align: top;"><span style="color: #339933;">...</span></span> <span style="vertical-align: top;"> <span style="color: #666666; font-style: italic;">// If both parts valid, return true</span></span> <span style="vertical-align: top;"> <span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #000088;">$localResult</span> <span style="color: #339933;">&&</span> <span style="color: #000088;">$hostnameResult</span> <span style="color: #339933;">&&</span> <span style="color: #000088;">$length</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span></span> <span style="vertical-align: top;"> <span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span><span style="color: #339933;">;</span></span> <span style="vertical-align: top;"> <span style="color: #009900;">}</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">{</span></span> <span style="vertical-align: top;"> <span style="color: #b1b100;">return</span> <strong><span style="color: #000000; font-weight: bold;">true</span></strong><span style="color: #339933;">;</span></span> <span style="vertical-align: top;"> <span style="color: #009900;">}</span></span> |
|