Skip to content

Commit da64d36

Browse files
committed
keep 2.5 version
2 parents c9fe569 + 89e7479 commit da64d36

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/Console/Command/AppShell.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ abstract class AppShell extends Shell
3636

3737
public function initialize()
3838
{
39+
if (PHP_VERSION_ID < 80000) {
40+
require_once ROOT . DS . APP_DIR . DS . 'Lib' . DS . 'polyfill.php';
41+
}
42+
3943
$configLoad = $this->Tasks->load('ConfigLoad');
4044
$configLoad->execute();
4145
if (Configure::read('Plugin.Benchmarking_enable')) {

app/Controller/AttributesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ public function search($continue = false)
15621562
}
15631563

15641564
$this->paginate['conditions'] = $params['conditions'];
1565-
$index = $this->MispAttribute->query("SHOW index from attributes where Key_name = 'deleted'");
1565+
$index = $this->Attribute->query("SHOW index from attributes where Key_name = 'deleted'");
15661566
if (!empty($index)) {
15671567
$this->paginate['ignoreIndexHint'] = 'deleted';
15681568
}

0 commit comments

Comments
 (0)