Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../methods
File: googlecloud.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if (!defined('UPDRAFTPLUS_DIR')) die('No direct access.');
[2] Fix | Delete
[3] Fix | Delete
if (class_exists('UpdraftPlus_BackupModule_googlecloud')) return;
[4] Fix | Delete
[5] Fix | Delete
if (version_compare(PHP_VERSION, '5.2.4', '>=')) {
[6] Fix | Delete
[7] Fix | Delete
if (class_exists('UpdraftPlus_Addons_RemoteStorage_googlecloud')) {
[8] Fix | Delete
class UpdraftPlus_BackupModule_googlecloud extends UpdraftPlus_Addons_RemoteStorage_googlecloud {
[9] Fix | Delete
public function __construct() {
[10] Fix | Delete
parent::__construct('googlecloud', 'Google Cloud', '5.2.4', 'googlecloud.png');
[11] Fix | Delete
}
[12] Fix | Delete
}
[13] Fix | Delete
} else {
[14] Fix | Delete
include_once(UPDRAFTPLUS_DIR.'/methods/addon-not-yet-present.php');
[15] Fix | Delete
/**
[16] Fix | Delete
* N.B. UpdraftPlus_BackupModule_AddonNotYetPresent extends UpdraftPlus_BackupModule
[17] Fix | Delete
*/
[18] Fix | Delete
class UpdraftPlus_BackupModule_googlecloud extends UpdraftPlus_BackupModule_AddonNotYetPresent {
[19] Fix | Delete
public function __construct() {
[20] Fix | Delete
parent::__construct('googlecloud', 'Google Cloud', '5.2.4', 'googlecloud.png');
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
}
[24] Fix | Delete
} else {
[25] Fix | Delete
include_once(UPDRAFTPLUS_DIR.'/methods/insufficient.php');
[26] Fix | Delete
class UpdraftPlus_BackupModule_googlecloud extends UpdraftPlus_BackupModule_insufficientphp {
[27] Fix | Delete
public function __construct() {
[28] Fix | Delete
parent::__construct('googlecloud', 'Google Cloud', '5.2.4', 'googlecloud.png');
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function