',
addslashes( $reactivate_url )
);
self::_error(
sprintf(
// Translators: 1 error message, 2 reactivate button.
__(
'%1$s
then %2$s.',
'w3-total-cache'
),
$e->getMessage(),
$reactivate_button
)
);
}
/**
* W3 writable error
*
* @param string $path Path.
* @param string[] $chmod_dirs Directories that should be chmod 777 inorder to write.
*
* @throws \Exception Exception.
*
* @return void
*/
public static function throw_on_write_error( $path, $chmod_dirs = array() ) {
$chmods = '';
if ( $chmod_dirs ) {
$chmods = '
%s | %s |
%s | %s |