public/wordpress/wp-content/plugins/backupbuddy/destinations/live/_troubleshooting.php
// Save alerts into file for displaying on Stash Live page.
Save alerts into file for displaying on Stash Live page.
Save alerts into file for displaying on Stash Live page .
public static function _record_alerts() {
		$troubleshooting_alerts_file = backupbuddy_core::getLogDirectory() . 'live/troubleshooting_alerts-' . pb_backupbuddy::$options['log_serial'] . '.txt';
		if ( count( self::$_results['alerts'] ) > 0 ) {
			if ( false === @file_put_contents( $troubleshooting_alerts_file, implode( "<br>", self::$_results['alerts'] ) ) ) {
			}
		} else { 
			if ( @file_exists( $troubleshooting_alerts_file ) ) {
				@unlink( $troubleshooting_alerts_file );
			}
		}
	}
public static function _record_alerts ( ) { $ troubleshooting_alerts_file = backupbuddy_core :: getLogDirectory ( ) . 'live/troubleshooting_alerts-' . pb_backupbuddy :: $ options [ 'log_serial' ] . '.txt' ; if ( count ( self :: $ _results [ 'alerts' ] ) > 0 ) { if ( false === @ file_put_contents ( $ troubleshooting_alerts_file , implode ( " <br> " , self :: $ _results [ 'alerts' ] ) ) ) { } } else { if ( @ file_exists ( $ troubleshooting_alerts_file ) ) { @ unlink ( $ troubleshooting_alerts_file ) ; } } }
Save alerts into file for displaying on Stash Live page.
Save alerts into file for displaying on Stash Live page .
// Unable to write. // Clear away file.