Plugin Directory

Changeset 2226459


Ignore:
Timestamp:
01/13/2020 11:00:44 AM (6 years ago)
Author:
jayhybrid
Message:
  • Minor fixes
Location:
debug-log-list/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debug-log-list/trunk/hybridsupply-log.php

    r2226376 r2226459  
    33 * Plugin Name: Debug Log List
    44 * Description: Extracts errors from your debug.log and groups them into individual items.
    5  * Version: 0.2.2.1
     5 * Version: 0.2.2.2
    66 * Author: Jay
    77 * Author URI: https://profiles.wordpress.org/jayhybrid
     
    2020     */
    2121    $log = array();
     22    $log_hashes = array();
    2223
    2324    $logfile = WP_DEBUG_LOG === TRUE ? WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'debug.log' : WP_DEBUG_LOG;
     
    147148      <main>
    148149      <?php
    149       if ( $logfile_contents && file_exists($logfile) ) {
     150      if ( isset($logfile_contents) && $logfile_contents && file_exists($logfile) ) {
    150151        if ( TRUE ) { ?>
    151152          <table>
     
    226227
    227228                      case 'line':
    228                         echo '<td>' . substr($value, 8) . '</td>';
     229                        echo '<td>' . number_format_i18n( substr($value, 8) ) . '</td>';
    229230                        break;
    230231
    231232                                case 'occurrences':
    232                         $log[$i]->occurrences = array_count_values( array_column($log, 'hash') )[$log[$i]->hash];
     233                        $log[$i]->occurrences = number_format_i18n( array_count_values( array_column($log, 'hash') )[$log[$i]->hash] );
    233234
    234235                        echo '<td>' . $log[$i]->occurrences . '</td>';
     
    316317      else {
    317318        echo '<p>' . $logfile . ' seems to be empty.</p>';
     319
     320        hybridsupply_log_count(array(
     321          'count' => 0,
     322          'count_all' => 0,
     323        ));
    318324      }
    319325      ?>
  • debug-log-list/trunk/readme.txt

    r2226376 r2226459  
    3232== Changelog ==
    3333
     34= 0.2.2.2 =
     35
     36* Minor fixes
     37
    3438= 0.2.2.1 =
    3539
Note: See TracChangeset for help on using the changeset viewer.