Skip to content

Commit d69aa69

Browse files
authored
Merge pull request #78 from nsimakov/xdmod9.0
Fixed access to mod_appkernel using modw connector
2 parents ef93856 + 682594e commit d69aa69

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

classes/AppKernel/PerfPatternRecognition.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ class PerfPatternRecognition
109109
public function __construct($options)
110110
{
111111
//get AK short names
112-
$pdo = DB::factory('database');
112+
$pdo = DB::factory('appkernel');
113113
$ak_shortnames=array();
114114
$ak_fullnames=array();
115115
$sql = "SELECT ak_base_name,name
116-
FROM mod_appkernel.app_kernel_def;";
116+
FROM app_kernel_def;";
117117
$sqlres_tasdb=$pdo->query($sql);
118118
foreach($sqlres_tasdb as $row)
119119
{
@@ -136,7 +136,7 @@ public function __construct($options)
136136
$this->code_colors_by_error_code[$errorSubtype.$errorType]=$color;
137137
}
138138
}
139-
139+
140140
//get list of resources with scheduled task
141141
$this->active_resources=array();
142142
$akrr_section = isset($config['config_akrr'])
@@ -184,7 +184,7 @@ public function make_report()
184184
for($i=0;$i<count($this->recpatterns['resource']);$i++){
185185
$resource=$this->recpatterns['resource'][$i];
186186
$problems=$this->recpatterns['problems'][$i];
187-
187+
188188
$message.='<tr>';
189189
$message.="<td colspan=4>Resource: <b>$resource</b></td>";
190190
$message.='</tr>';
@@ -241,10 +241,10 @@ private function recognize_patterns()
241241
'problems'=>array());
242242

243243
foreach ($this->runStatsResource as $resource=>$runStatsResource) {
244-
244+
245245
if(!in_array($resource, $this->active_resources))continue;
246-
247-
246+
247+
248248
$problems[$resource]=array();
249249

250250
//detect appkernel level problems

0 commit comments

Comments
 (0)