You appear to be a bot. Output may be restricted
Description
Reset the trace actions file if this is the first time for this invocation
Usage
bw_actions_reset();
Parameters
Returns
voidSource
File name: oik/includes/oik-bwtrace.incLines:
1 to 23 of 23
function bw_actions_reset() { static $reset_done = false; //global $bw_action_options; //$reset_done = bw_array_get( $bw_action_options, 'reset_done', false ); if ( !$reset_done ) { $file = bw_action_file(); // This file may not exist so we have two choices. 1. precede with an @, 2. test for it // but if $file is not set then we should test // In order for bw_summarise_actions to work we need a saved copy of the action log before the reset if ( is_file($file) ) { $target = "bwaction.cpy" ; $res = copy( $file, $target ); $ret = unlink( $file ); bw_trace2( $ret, "unlink $file" ); } bw_trace2( $file, "action_reset" ); } //$bw_action_options['reset_done'] = true; $reset_done = true; }View on GitHub View on Trac