Skip to content

Commit 845d1ab

Browse files
committed
Merged 1.9.4.x
2 parents c874ed7 + 8202dc9 commit 845d1ab

File tree

48 files changed

+310
-2277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+310
-2277
lines changed

.ddev/commands/web/vendor-patches

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
## Description: create Vendor Patches
4+
## Usage: vendor-patches
5+
## Example: ddev vendor-patches
6+
7+
php vendor/bin/vendor-patches generate

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ updates:
33
- package-ecosystem: "composer"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"
77
- package-ecosystem: "github-actions"
88
directory: "/"
99
schedule:

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,18 @@ If your project uses OpenMage through composer then all dependencies will be man
179179
If you just extracted the release zip/tarball in your project's main folder then be sure to:
180180
- remove the old copy of aforementioned libraries from your project, you can do that with this command:
181181
```bash
182-
rm -rf lib/Cm lib/Credis lib/mcryptcompat lib/Pelago lib/phpseclib lib/Zend
182+
rm -rf app/code/core/Zend lib/Cm lib/Credis lib/mcryptcompat lib/Pelago lib/phpseclib lib/Zend
183183
```
184184

185-
186185
- download the new release zip file that is named `openmage-VERSIONNUMBER.zip`, this one is built to contain the `vendor`
187186
folder generated by composer, with all the dependencies in it
188187
- extract the zip file in your project's repository as you always did
189188

189+
We also decided to remove our Zend_DB patches (that were stored in `app/code/core/Zend`) because they were very old and
190+
not compatible with the new implementations made by ZF1-Future, which is much more advanced and feature rich.
191+
This may generate a problem with `Zend_Db_Select' statements that do not use 'Zend_Db_Expr' to quote expressions.
192+
If you see SQL errors after upgrading please remember to check for this specific issue in your code.
193+
190194
### New Config Options
191195

192196
- `admin/design/use_legacy_theme`

app/code/core/Mage/Adminhtml/Block/Report/Config/Form/Field/YtdStart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
3333
$_months = [];
3434
for ($i = 1; $i <= 12; $i++) {
3535
$_months[$i] = Mage::app()->getLocale()
36-
->date(mktime(null, null, null, $i))
36+
->date(mktime(0, null, null, $i))
3737
->get(Zend_Date::MONTH_NAME);
3838
}
3939

app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Info.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ public function getCustomerGroupName()
7474

7575
public function getCustomerViewUrl()
7676
{
77+
if (!Mage::getSingleton('admin/session')->isAllowed('customer/manage')) {
78+
return false;
79+
}
7780
if ($this->getOrder()->getCustomerIsGuest() || !$this->getOrder()->getCustomerId()) {
7881
return false;
7982
}

app/code/core/Mage/Catalog/Helper/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ public function validateUploadFile($filePath)
645645
Mage::throwException($this->__('Disallowed file format.'));
646646
}
647647

648-
$_processor = new Varien_Image($filePath);
648+
$_processor = Mage::getModel('varien/image', $filePath);
649649
$mimeType = $_processor->getMimeType();
650650

651651
// Force garbage collection since image handler resource uses memory without counting toward memory limit

app/code/core/Mage/Catalog/Model/Api2/Product/Image/Rest/Admin/V1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function _create(array $data)
6969
// try to create Image object to check if image data is valid
7070
try {
7171
$filePath = $apiTempDir . DS . $imageFileName;
72-
new Varien_Image($filePath);
72+
Mage::getModel('varien/image', $filePath);
7373
Mage::getModel('core/file_validator_image')->validate($filePath);
7474
} catch (Exception $e) {
7575
$ioAdapter->rmdir($apiTempDir, true);

app/code/core/Mage/Catalog/Model/Product/Attribute/Media/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function create($productId, $data, $store = null, $identifierType = null)
158158
// try to create Image object - it fails with Exception if image is not supported
159159
try {
160160
$filePath = $tmpDirectory . DS . $fileName;
161-
new Varien_Image($filePath);
161+
Mage::getModel('varien/image', $filePath);
162162
Mage::getModel('core/file_validator_image')->validate($filePath);
163163
} catch (Exception $e) {
164164
// Remove temporary directory

app/code/core/Mage/Catalog/Model/Product/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public function setImageProcessor($processor)
451451
public function getImageProcessor()
452452
{
453453
if (!$this->_processor) {
454-
$this->_processor = new Varien_Image($this->getBaseFile());
454+
$this->_processor = Mage::getModel('varien/image', $this->getBaseFile());
455455
}
456456
$this->_processor->keepAspectRatio($this->_keepAspectRatio);
457457
$this->_processor->keepFrame($this->_keepFrame);

app/code/core/Mage/CatalogIndex/Model/Indexer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ public function buildEntityFilter($attributes, $values, &$filteredAttributes, $p
717717
if (isset($values[$code]['from']) && isset($values[$code]['to'])) {
718718
if ($values[$code]['from']) {
719719
if (!is_numeric($values[$code]['from'])) {
720-
$_date = date("Y-m-d H:i:s", strtotime($values[$code]['from']));
720+
$_date = date(Varien_Db_Adapter_Pdo_Mysql::TIMESTAMP_FORMAT, strtotime($values[$code]['from']));
721721
$values[$code]['from'] = $_date;
722722
}
723723

@@ -726,7 +726,7 @@ public function buildEntityFilter($attributes, $values, &$filteredAttributes, $p
726726

727727
if ($values[$code]['to']) {
728728
if (!is_numeric($values[$code]['to'])) {
729-
$values[$code]['to'] = date("Y-m-d H:i:s", strtotime($values[$code]['to']));
729+
$values[$code]['to'] = date(Varien_Db_Adapter_Pdo_Mysql::TIMESTAMP_FORMAT, strtotime($values[$code]['to']));
730730
}
731731
$filter[$code]->where("value <= ?", $values[$code]['to']);
732732
}

0 commit comments

Comments
 (0)