Plugin Directory

Changeset 1530574


Ignore:
Timestamp:
11/08/2016 06:51:18 PM (9 years ago)
Author:
newsplugin.com
Message:

Adding custom logs should be default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • newsplugin/trunk/news-plugin.php

    r1530571 r1530574  
    769769                echo '</div>';
    770770                echo '<div class="log_div">';
    771                 echo '<h2><input type="checkbox" id="errors_div" onclick="showError(this)"/> Include Custom Logs</h2>';
     771                $myfilename = plugin_dir_url( __FILE__ ) ."logs/plugin-logs.txt";
     772                $content = file_get_contents($myfilename);
     773                $v = empty($content) ? '' : ' checked="checked"';
     774                echo '<h2><input type="checkbox" id="errors_div" onclick="showError(this)"'.$v.'/> Include Custom Logs</h2>';
    772775                echo '</div>';
    773776                echo '<div class="feed_system_preview" id="error_show_div">';               
    774                 $myfilename = plugin_dir_url( __FILE__ ) ."logs/plugin-logs.txt";
    775                 $content = file_get_contents($myfilename);
     777                echo '<textarea id="errors_logs" name="noLog_errors" form="feed_form" style="display:none;">"'.$content.'"</textarea>';
    776778                if(!empty($content)) {
    777                 echo '<textarea id="errors_logs" name="noLog_errors" form="feed_form" style="display:none;">"'.$content.'"</textarea>';
    778779                echo '<p><strong>"'.$content.'"</strong></p>';
    779780                }
Note: See TracChangeset for help on using the changeset viewer.