Source: http://narno.com/blog/verifier-la-validite-des-fichiers-de-configuration-xml-de-magento
app/code/local/Varien/Simplexml/Config.php :
<?php
class Varien_Simplexml_Config {
<?php | |
class MyCompany_MyModule_Model_Observer extends Mage_Cron_Model_Observer | |
{ | |
/** | |
* Process cron queue | |
* Geterate tasks schedule | |
* Cleanup tasks schedule | |
* |
diff --git a/app/code/core/Mage/Paypal/Model/Standard.php b/app/code/core/Mage/Paypal/Model/Standard.php | |
index e77e3d8..e70efea 100644 | |
--- a/app/code/core/Mage/Paypal/Model/Standard.php | |
+++ b/app/code/core/Mage/Paypal/Model/Standard.php | |
@@ -368,8 +368,16 @@ class Mage_Paypal_Model_Standard extends Mage_Payment_Model_Method_Abstract | |
*/ | |
} else { | |
- | |
- if ($this->getIpnFormData('mc_gross')!=$order->getBaseGrandTotal()) { |
Index: app/code/core/Mage/Core/Controller/Varien/Exception.php | |
=================================================================== | |
--- app/code/core/Mage/Core/Controller/Varien/Exception.php (revision ) | |
+++ app/code/core/Mage/Core/Controller/Varien/Exception.php (revision ) | |
@@ -67,7 +67,7 @@ | |
public function prepareRedirect($path, $arguments = array()) | |
{ | |
$this->_resultCallback = self::RESULT_REDIRECT; | |
- $this->_resultCallbackParams($path, $arguments); | |
+ $this->_resultCallbackParams = array($path, $arguments); |
diff --git a/app/code/core/Mage/Adminhtml/Block/System/Config/Tabs.php b/app/code/core/Mage/Adminhtml/Block/System/Config/Tabs.php | |
index 9d3350c..4af5c71 | |
--- a/app/code/core/Mage/Adminhtml/Block/System/Config/Tabs.php | |
+++ b/app/code/core/Mage/Adminhtml/Block/System/Config/Tabs.php | |
@@ -80,13 +80,22 @@ class Mage_Adminhtml_Block_System_Config_Tabs extends Mage_Adminhtml_Block_Widge | |
$configFields = Mage::getSingleton('adminhtml/config'); | |
$sections = $configFields->getSections($current); | |
$tabs = (array)$configFields->getTabs()->children(); | |
- | |
Source: http://narno.com/blog/verifier-la-validite-des-fichiers-de-configuration-xml-de-magento
app/code/local/Varien/Simplexml/Config.php :
<?php
class Varien_Simplexml_Config {
<?php | |
class EcomDev_Optimization_Model_Resource_Attribute_Source_Table extends Mage_Eav_Model_Entity_Attribute_Source_Table | |
{ | |
protected static $_preloadedOptions = array(); | |
protected static function _getStoreOptions($storeId, $attributeId) | |
{ | |
if (!isset(self::$_preloadedOptions[$storeId])) { | |
$options = Mage::getResourceModel('eav/entity_attribute_option_collection') |
<?php | |
/** | |
* Return URL based on current selected directory or root directory for startup | |
* | |
* @return string | |
*/ | |
public function getCurrentUrl() | |
{ | |
if (!$this->_currentUrl) { | |
$mediaDir = Mage::getConfig()->getOptions()->getMediaDir(); |
<?php | |
class OpenMage_Base_Model_Core_Store extends Mage_Core_Model_Store | |
{ | |
/** | |
* Add script file name to the URL if server rewrites are disabled or Magento is not installed | |
* | |
* NB: This differs from the parent just by not adding the script name to the URL for the admin site | |
* | |
* @param string $url |
<?php | |
public function suggestQty($qty) | |
{ | |
// We do not manage stock | |
if ($qty <= 0 || !$this->getManageStock()) { | |
return $qty; | |
} | |
$qtyIncrements = (int)$this->getQtyIncrements(); // Currently only integer increments supported | |
if ($qtyIncrements < 2) { |
<?php | |
/** | |
* @param array $parameters | |
* @param string $secretKey | |
* | |
* @return string | |
* | |
* @throws InvalidArgumentException | |
*/ | |
function prepareParameters(array $parameters, $secretKey) |