36cae97a by vanisha

changes done

1 parent 497a3564
Showing 1 changed file with 2 additions and 2 deletions
......@@ -60,17 +60,17 @@ if($isadmin) {
$files = scandir($split_path);
foreach($files as $file) {
if($file === '.' || $file === '..') {continue;}
if( (str_contains($file, $date)) && (str_contains($file, '.log'))) {
if( (strpos($file, $date) !== false) && (strpos($file, '.log')) ) {
$array = array();
$array['sno'] = $i;
$array['name'] = $file;
$array['log'] = file_get_contents($split_path.'/'.$file);
$table_content_array[] = $array;
$i = $i+1;
}
}
}
$templatecontext['tablecontents'] = $table_content_array;
echo $OUTPUT->render_from_template('block_log/cron_logs_view', $templatecontext);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!