Skip to content

Commit

Permalink
Fix #15 and #16
Browse files Browse the repository at this point in the history
  • Loading branch information
dequeues committed Feb 29, 2020
1 parent 9b04d02 commit 739bd2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/modules/cloudflare/class/cloudflare.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function update_access_rule($mode, $ip, $notes = '')

public function ipv46_setting($setting = NULL)
{
$endpoint = "/zones/{$this->zone_id}/settings/ipv6";
$endpoint = "zones/{$this->zone_id}/settings/ipv6";

if (is_null($setting))
{
Expand Down Expand Up @@ -266,7 +266,7 @@ public function get_access_rules()
{
$data = $this->request(
array (
'endpoint' => "/zones/{$this->zone_id}/firewall/access_rules/rules"
'endpoint' => "zones/{$this->zone_id}/firewall/access_rules/rules"
)
);
return $data;
Expand All @@ -276,7 +276,7 @@ public function delete_firewall_rule($rule_id)
{
$data = $this->request(
array (
'endpoint' => "/zones/{$this->zone_id}/firewall/access_rules/rules/{$rule_id}",
'endpoint' => "zones/{$this->zone_id}/firewall/access_rules/rules/{$rule_id}",
'method' => 'DELETE'
)
);
Expand All @@ -286,7 +286,7 @@ public function delete_firewall_rule($rule_id)

public function cache_level($setting = NULL)
{
$endpoint = "/zones/{$this->zone_id}/settings/cache_level";
$endpoint = "zones/{$this->zone_id}/settings/cache_level";

if (is_null($setting))
{
Expand All @@ -312,7 +312,7 @@ public function cache_level($setting = NULL)

public function purge_cache($urls = NULL)
{
$endpoint = "/zones/{$this->zone_id}/purge_cache";
$endpoint = "zones/{$this->zone_id}/purge_cache";

if (is_null($files))
{
Expand Down Expand Up @@ -352,7 +352,7 @@ public function get_latest_version()

public function security_level_setting($setting = NULL)
{
$endpoint = "/zones/{$this->zone_id}/settings/security_level";
$endpoint = "zones/{$this->zone_id}/settings/security_level";
if (is_null($setting))
{
$data = $this->request(
Expand Down

0 comments on commit 739bd2d

Please sign in to comment.