Skip to content

Commit 3713b1b

Browse files
committed
merge
2 parents 21b9a63 + e715232 commit 3713b1b

File tree

536 files changed

+9085
-2187
lines changed

Some content is hidden

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

536 files changed

+9085
-2187
lines changed

.all-contributorsrc

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,22 @@
13271327
"contributions": [
13281328
"code"
13291329
]
1330+
},
1331+
{
1332+
"login": "cebe",
1333+
"name": "Carsten Brandt",
1334+
"avatar_url": "https://avatars.githubusercontent.com/u/189796?v=4",
1335+
"profile": "http://cebe.cc/"
1336+
},
1337+
{
1338+
"login": "eneiasramos",
1339+
"name": "Enéias Ramos de Melo",
1340+
"avatar_url": "https://avatars.githubusercontent.com/u/2862728?v=4",
1341+
"profile": "https://github.com/eneiasramos",
1342+
"contributions": [
1343+
"code"
1344+
]
13301345
}
13311346
],
13321347
"contributorsPerLine": 7
1333-
}
1348+
}

.github/phpstan-baseline.neon

Lines changed: 6980 additions & 480 deletions
Large diffs are not rendered by default.

.github/phpstan.neon

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ parameters:
9898
# Dataflow/Model/Convert/Iterator.php
9999
- */Dataflow/Model/Convert/Iterator.php
100100

101-
level: 0
101+
# Too much noise from "Variable $this might not be defined"
102+
- */app/code/core/*/*/data/*
103+
- */app/code/core/*/*/sql/*
104+
level: 2
105+
checkFunctionNameCase: true
106+
checkInternalClassCaseSensitivity: true
107+
102108
# universalObjectCratesClasses:
103109
# - Varien_Object

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v3
1414

1515
- name: php version
1616
run: php --version

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
operating-system: [ubuntu-latest]
1818
php-versions: ['7.4', '8.1']
1919
steps:
20-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v3
2121
- name: Setup PHP
2222
uses: shivammathur/setup-php@v2
2323
with:

.github/workflows/static-code-analyses.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
operating-system: [ubuntu-latest]
1515
php-versions: ['7.0', '7.4']
1616
steps:
17-
- uses: actions/checkout@v1
17+
- uses: actions/checkout@v3
1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@master
2020
with:
@@ -44,7 +44,7 @@ jobs:
4444
'.github/phpstan.neon',
4545
]
4646
steps:
47-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v3
4848
- name: Install dependencies
4949
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
5050
- name: ensure existance of ./app/code/local
@@ -63,7 +63,7 @@ jobs:
6363
operating-system: [ubuntu-latest]
6464
php-versions: ['8.0','8.1']
6565
steps:
66-
- uses: actions/checkout@v1
66+
- uses: actions/checkout@v3
6767
- name: Setup PHP
6868
uses: shivammathur/setup-php@master
6969
with:
@@ -100,7 +100,7 @@ jobs:
100100
- directories: 'lib/'
101101
config_files: '.github/phpstan.neon'
102102
steps:
103-
- uses: actions/checkout@v2
103+
- uses: actions/checkout@v3
104104
- name: Install dependencies
105105
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
106106
- name: ensure existance of ./app/code/local

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
repository: OpenMage/Testfield
1616
path: ./
@@ -22,7 +22,7 @@ jobs:
2222
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
2323

2424
- name: Checkout OpenMage repo
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
with:
2727
path: openmage
2828

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
33
<a href="#contributors-"><img src="https://img.shields.io/badge/all_contributors-146-orange.svg?style=flat-square" alt="All Contributors"></a>
44
<!-- ALL-CONTRIBUTORS-BADGE:END -->
5-
<a href="https://travis-ci.org/openmage/magento-lts"><img src="https://travis-ci.org/openmage/magento-lts.svg" alt="Build Status"></a>
65
<a href="https://packagist.org/packages/openmage/magento-lts"><img src="https://poser.pugx.org/openmage/magento-lts/d/total.svg" alt="Total Downloads"></a>
76
<a href="https://packagist.org/packages/openmage/magento-lts"><img src="https://poser.pugx.org/openmage/magento-lts/license.svg" alt="License"></a>
7+
<br />
8+
<img src="https://github.com/openmage/magento-lts/actions/workflows/php.yml/badge.svg" alt="PHP workflow Badge" />
9+
<img src="https://github.com/openmage/magento-lts/actions/workflows/sonar.yml/badge.svg" alt="Sonar workflow badge" />
10+
<img src="https://github.com/openmage/magento-lts/actions/workflows/static-code-analyses.yml/badge.svg" alt="Static Code Analyses workflow badge" />
11+
<img src="https://github.com/openmage/magento-lts/actions/workflows/unit-tests.yml/badge.svg" alt="Unit Tests workflow badge" />
812
</p>
913

1014
# Magento - Long Term Support
@@ -75,7 +79,8 @@ Most important changes will be listed here, all other changes since `19.4.0` can
7579

7680
### Between Magento 1.9.4.5 and OpenMage 19.x
7781

78-
Bug fixes and PHP 7.x and 8.0 compatibility.
82+
- bug fixes and PHP 7.x and 8.0 compatibility
83+
- added config cache for system.xml #1916
7984

8085
### Between OpenMage 19.x and 20.x
8186

@@ -99,7 +104,11 @@ For full list of changes, you can [compare tags](https://github.com/OpenMage/mag
99104
- `admin/emails/admin_notification_email_template`
100105
- `catalog/product_image/progressive_threshold`
101106
- `catalog/search/search_separator`
107+
- `dev/log/max_level`
102108
- `newsletter/security/enable_form_key`
109+
- `sitemap/category/lastmod`
110+
- `sitemap/page/lastmod`
111+
- `sitemap/product/lastmod`
103112

104113
### New Events
105114

@@ -112,14 +121,6 @@ For full list of changes, you can [compare tags](https://github.com/OpenMage/mag
112121

113122
[Full list of events](EVENTS.md)
114123

115-
### New Translations
116-
117-
There are some new or changed translations, if you want add them to your locale pack please check:
118-
119-
- `app/locale/en_US/Adminhtml_LTS.csv`
120-
- `app/locale/en_US/Core_LTS.csv`
121-
- `app/locale/en_US/Sales_LTS.csv`
122-
123124
### Removed Modules
124125

125126
- `Mage_Compiler`
@@ -363,6 +364,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
363364
<td align="center"><a href="https://github.com/mdlonline"><img src="https://avatars.githubusercontent.com/u/5389528?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>mdlonline</b></sub></a></td>
364365
<td align="center"><a href="https://www.developpeur-web-tlse.fr/"><img src="https://avatars.githubusercontent.com/u/5030086?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>Benjamin MARROT</b></sub></a></td>
365366
<td align="center"><a href="https://github.com/tmewes"><img src="https://avatars.githubusercontent.com/u/12640514?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>Tino Mewes</b></sub></a></td>
367+
<td align="center"><a href="http://cebe.cc/"><img src="https://avatars.githubusercontent.com/u/189796?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Carsten Brandt</b></sub></a><br /><a href="https://github.com/OpenMage/magento-lts/commits?author=cebe" title="Code">💻</a></td>
368+
</tr>
369+
<tr>
370+
<td align="center"><a href="https://github.com/eneiasramos"><img src="https://avatars.githubusercontent.com/u/2862728?v=4" loading="lazy" width="100" alt=""/><br /><sub><b>Enéias Ramos de Melo</b></sub></a></td>
366371
</tr>
367372
</table>
368373

api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
if (version_compare(phpversion(), '7.0.0', '<')===true) {
28-
echo 'It looks like you have an invalid PHP version. Magento supports PHP 7.0.0 or newer';
28+
echo 'It looks like you have an invalid PHP version. OpenMage supports PHP 7.0.0 or newer';
2929
exit;
3030
}
3131

app/Mage.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ final class Mage
147147

148148
/**
149149
* Gets the current Magento version string
150-
* @link http://www.magentocommerce.com/blog/new-community-edition-release-process/
151150
*
152151
* @return string
153152
*/
@@ -160,7 +159,6 @@ public static function getVersion()
160159

161160
/**
162161
* Gets the detailed Magento version information
163-
* @link http://www.magentocommerce.com/blog/new-community-edition-release-process/
164162
*
165163
* @return array
166164
*/
@@ -404,7 +402,7 @@ public static function getModuleDir($type, $moduleName)
404402
* Retrieve config value for store by path
405403
*
406404
* @param string $path
407-
* @param mixed $store
405+
* @param null|string|bool|int|Mage_Core_Model_Store $store
408406
* @return mixed
409407
*/
410408
public static function getStoreConfig($path, $store = null)
@@ -865,7 +863,18 @@ public static function log($message, $level = null, $file = '', $forceLog = fals
865863

866864
static $loggers = array();
867865

866+
try {
867+
$maxLogLevel = (int) self::getStoreConfig('dev/log/max_level');
868+
} catch (Throwable $e) {
869+
$maxLogLevel = Zend_Log::DEBUG;
870+
}
871+
868872
$level = is_null($level) ? Zend_Log::DEBUG : $level;
873+
874+
if (!self::$_isDeveloperMode && $level > $maxLogLevel) {
875+
return;
876+
}
877+
869878
$file = empty($file) ?
870879
(string) self::getConfig()->getNode('dev/log/file', Mage_Core_Model_Store::DEFAULT_CODE) : basename($file);
871880

0 commit comments

Comments
 (0)