This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.php |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /dev/null | |
+++ ../library/Zend/Acl/Exception.php | |
@@ -23,7 +23,7 @@ | |
/** | |
* @see Zend_Exception | |
*/ | |
-require_once 'Zend/Exception.php'; | |
+#require_once 'Zend/Exception.php'; | |
$string = '';
if (!Zend_Validate::is($string, 'NotEmpty')) {
echo 'error';
}
$validator = new \Laminas\Validator\NotEmpty();
if (!$validator->isValid($string)) {
echo 'error';
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/code/local/Amasty/Fpc/Model/Fpc.php b/app/code/local/Amasty/Fpc/Model/Fpc.php | |
index c2ce1cf..0ca387a 100755 | |
--- a/app/code/local/Amasty/Fpc/Model/Fpc.php | |
+++ b/app/code/local/Amasty/Fpc/Model/Fpc.php | |
@@ -257,7 +257,9 @@ class Amasty_Fpc_Model_Fpc extends Mage_Core_Model_Cache | |
'size' => strlen($data), | |
'type' => 'page', | |
'customer_group' => Mage::getSingleton('amfpc/fpc_front')->getCustomerGroupId(), | |
- 'session' => $_COOKIE['frontend'] | |
+ 'session' => isset($_COOKIE[Mage_Core_Controller_Front_Action::SESSION_NAMESPACE]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('../app/Mage.php'); | |
Mage::app('admin'); | |
$entityType = Mage::getModel('catalog/product')->getResource()->getTypeId(); | |
$attributeSetCollection = Mage::getResourceModel('eav/entity_attribute_set_collection') | |
->setEntityTypeFilter($entityType); | |
$count = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Amasty_Finder_Block_Product extends Mage_Core_Block_Template | |
{ | |
public function getProdctfinderCollection() | |
{ | |
return Mage::helper('amfinder/product')->getProductfinderCollection($this->getFinderId(), $this->getProductId()); | |
} | |
public function getProductId() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>Remove Magento's orphan images web console</title> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'> | |
<link href='https://fonts.googleapis.com/css?family=Inconsolata:400,700&subset=latin,latin-ext' rel='stylesheet' | |
type='text/css'> | |
<style type="text/css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
# Determine if a file list is passed | |
if [ "$#" -eq 1 ] | |
then | |
oIFS=$IFS | |
IFS=' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<events> | |
<m2epro_insert_attributes_pattern> | |
<observers> | |
<sr_m2epro_insert_attributes_pattern> | |
<type>singleton</type> | |
<class>my_m2e_addon/observer</class> | |
<method>modifyAttributeSearchPattern</method> | |
</sr_m2epro_insert_attributes_pattern> | |
</observers> | |
</m2epro_insert_attributes_pattern> |