Skip to content

Commit

Permalink
Merge pull request #24 from ToonSpin/magento-1.9
Browse files Browse the repository at this point in the history
Import Magento Release 1.9.2.1
  • Loading branch information
LeeSaferite committed Aug 5, 2015
2 parents cb52550 + 62575ca commit 4bc632e
Show file tree
Hide file tree
Showing 143 changed files with 1,592 additions and 1,198 deletions.
10 changes: 10 additions & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
==== 1.9.2.1 ====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
] NOTE: Current Release Notes are maintained at: [
] [
] http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html#magento/release-notes-ce-1.9.2.html [
] [
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==== 1.9.2.0 ====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public static function getVersionInfo()
'major' => '1',
'minor' => '9',
'revision' => '2',
'patch' => '0',
'patch' => '1',
'stability' => '',
'number' => '',
);
Expand Down
6 changes: 3 additions & 3 deletions app/code/core/Mage/Api/Model/Server/Adapter/Soap.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ protected function getWsdlUrl($params = null, $withAuth = true)
: $urlModel->getUrl('*/*/*');

if ( $withAuth ) {
$phpAuthUser = $this->getController()->getRequest()->getServer('PHP_AUTH_USER', false);
$phpAuthPw = $this->getController()->getRequest()->getServer('PHP_AUTH_PW', false);
$scheme = $this->getController()->getRequest()->getScheme();
$phpAuthUser = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_USER', false));
$phpAuthPw = rawurlencode($this->getController()->getRequest()->getServer('PHP_AUTH_PW', false));
$scheme = rawurlencode($this->getController()->getRequest()->getScheme());

if ($phpAuthUser && $phpAuthPw) {
$wsdlUrl = sprintf("%s://%s:%s@%s", $scheme, $phpAuthUser, $phpAuthPw,
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Catalog/Helper/Product/Compare.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ protected function _getUrlParams($product)
*/
public function getAddUrl($product)
{
if ($this->_logCondition->isVisitorLogEnabled()) {
if ($this->_logCondition->isVisitorLogEnabled() || $this->_customerSession->isLoggedIn()) {
return $this->_getUrl('catalog/product_compare/add', $this->_getUrlParams($product));
}
return '';
Expand Down
5 changes: 4 additions & 1 deletion app/code/core/Mage/Catalog/Model/Product/Api/V2.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function info($productId, $store = null, $attributes = null, $identifierT
*/
public function create($type, $set, $sku, $productData, $store = null)
{
if (!$type || !$set || !$sku) {
if (!$type || !$set || !$sku || !is_object($productData)) {
$this->_fault('data_invalid');
}

Expand Down Expand Up @@ -243,6 +243,9 @@ public function multiUpdate($productIds, $productData, $store = null, $identifie
*/
protected function _prepareDataForSave ($product, $productData)
{
if (!is_object($productData)) {
$this->_fault('data_invalid');
}
if (property_exists($productData, 'website_ids') && is_array($productData->website_ids)) {
$product->setWebsiteIds($productData->website_ids);
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Catalog/etc/api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<title>Update product</title>
<acl>catalog/product/update</acl>
</update>
<multiUpdate translate="title" module="Mage_Catalog">
<multiUpdate translate="title" module="catalog">
<title>Multi update product</title>
<acl>catalog/product/update</acl>
</multiUpdate>
Expand Down
20 changes: 20 additions & 0 deletions app/code/core/Mage/Cms/Block/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,24 @@ protected function _toHtml()
}
return $html;
}

/**
* Retrieve values of properties that unambiguously identify unique content
*
* @return array
*/
public function getCacheKeyInfo()
{
$blockId = $this->getBlockId();
if ($blockId) {
$result = array(
'CMS_BLOCK',
$blockId,
Mage::app()->getStore()->getCode(),
);
} else {
$result = parent::getCacheKeyInfo();
}
return $result;
}
}
16 changes: 16 additions & 0 deletions app/code/core/Mage/Cms/Block/Widget/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,26 @@ protected function _beforeToHtml()
$helper = Mage::helper('cms');
$processor = $helper->getBlockTemplateProcessor();
$this->setText($processor->filter($block->getContent()));
$this->addModelTags($block);
}
}

unset(self::$_widgetUsageMap[$blockHash]);
return $this;
}

/**
* Retrieve values of properties that unambiguously identify unique content
*
* @return array
*/
public function getCacheKeyInfo()
{
$result = parent::getCacheKeyInfo();
$blockId = $this->getBlockId();
if ($blockId) {
$result[] = $blockId;
}
return $result;
}
}
14 changes: 11 additions & 3 deletions app/code/core/Mage/Core/Controller/Request/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,19 @@ public function getHttpHost($trimPort = true)
if (!isset($_SERVER['HTTP_HOST'])) {
return false;
}
$host = $_SERVER['HTTP_HOST'];
if ($trimPort) {
$host = explode(':', $_SERVER['HTTP_HOST']);
return $host[0];
$hostParts = explode(':', $_SERVER['HTTP_HOST']);
$host = $hostParts[0];
}
return $_SERVER['HTTP_HOST'];

if (strpos($host, ',') !== false || strpos($host, ';') !== false) {
$response = new Zend_Controller_Response_Http();
$response->setHttpResponseCode(400)->sendHeaders();
exit();
}

return $host;
}

/**
Expand Down
3 changes: 0 additions & 3 deletions app/code/core/Mage/Core/Model/Email/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
* @method Mage_Core_Model_Email_Queue setMessageParameters(array $value)
* @method Mage_Core_Model_Email_Queue setProcessedAt(string $value)
* @method array getMessageParameters()
*
* @category Mage
* @package Mage_Core
*/
class Mage_Core_Model_Email_Queue extends Mage_Core_Model_Abstract
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Log/Model/Resource/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function _afterSave(Mage_Core_Model_Abstract $visitor)
return $this;
}
if ($visitor->getIsNewVisitor()) {
if ($this->_urlLoggingCondition->isLogEnabled()) {
if ($this->_urlLoggingCondition->isVisitorLogEnabled()) {
$this->_saveVisitorInfo($visitor);
$visitor->setIsNewVisitor(false);
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/PageCache/etc/adminhtml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<resources>
<admin>
<children>
<page_cache translate="title" module="pageCache">
<page_cache translate="title" module="pagecache">
<title>External Page Cache</title>
<sort_order>0</sort_order>
</page_cache>
Expand Down
18 changes: 10 additions & 8 deletions app/code/core/Mage/Paypal/Model/Express/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,15 +430,17 @@ public function returnFromPaypal($token)
if (!$quote->getIsVirtual()) {
$shippingAddress = $quote->getShippingAddress();
if ($shippingAddress) {
if ($exportedShippingAddress
&& $quote->getPayment()->getAdditionalInformation(self::PAYMENT_INFO_BUTTON) == 1
) {
if ($exportedShippingAddress) {
$this->_setExportedAddressData($shippingAddress, $exportedShippingAddress);
// PayPal doesn't provide detailed shipping info: prefix, middlename, lastname, suffix
$shippingAddress->setPrefix(null);
$shippingAddress->setMiddlename(null);
$shippingAddress->setLastname(null);
$shippingAddress->setSuffix(null);

if ($quote->getPayment()->getAdditionalInformation(self::PAYMENT_INFO_BUTTON) == 1) {
// PayPal doesn't provide detailed shipping info: prefix, middlename, lastname, suffix
$shippingAddress->setPrefix(null);
$shippingAddress->setMiddlename(null);
$shippingAddress->setLastname(null);
$shippingAddress->setSuffix(null);
}

$shippingAddress->setCollectShippingRates(true);
$shippingAddress->setSameAsBilling(0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
// no notice of license for now
?>

<?php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @category design
* @package base_default
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @copyright Copyright (c) 2015 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @category design
* @package base_default
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @copyright Copyright (c) 2015 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @category design
* @package base_default
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @copyright Copyright (c) 2015 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @category design
* @package base_default
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @copyright Copyright (c) 2015 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @category design
* @package base_default
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @copyright Copyright (c) 2015 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @category design
* @package base_default
* @copyright Copyright (c) 2009 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @copyright Copyright (c) 2015 Phoenix Medien GmbH & Co. KG (http://www.phoenix-medien.de)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<script type="text/javascript">
//<![CDATA[
Mage.Cookies.path = '<?php echo $this->getPath()?>';
Mage.Cookies.domain = '<?php echo $this->getDomain()?>';
Mage.Cookies.path = '<?php echo Mage::helper('core')->jsQuoteEscape($this->getPath()) ?>';
Mage.Cookies.domain = '<?php echo Mage::helper('core')->jsQuoteEscape($this->getDomain()) ?>';
//]]>
</script>
Loading

0 comments on commit 4bc632e

Please sign in to comment.