Remove the html_vars call when loading views as it is currently unnecessary.

This commit is contained in:
Alex Tselegidis 2022-01-19 10:21:05 +01:00
parent 59c44994f7
commit 821afb2211
19 changed files with 21 additions and 21 deletions

View file

@ -75,6 +75,6 @@ class About extends EA_Controller {
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug), 'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
]); ]);
$this->load->view('pages/about', html_vars()); $this->load->view('pages/about');
} }
} }

View file

@ -74,7 +74,7 @@ class Account extends EA_Controller {
'timezones' => $this->timezones->to_grouped_array(), 'timezones' => $this->timezones->to_grouped_array(),
]); ]);
$this->load->view('pages/account', html_vars()); $this->load->view('pages/account');
} }
/** /**

View file

@ -74,7 +74,7 @@ class Admins extends EA_Controller {
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug), 'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
]); ]);
$this->load->view('pages/admins', html_vars()); $this->load->view('pages/admins');
} }
/** /**

View file

@ -130,7 +130,7 @@ class Booking extends EA_Controller {
'matomo_analytics_url' => $matomo_analytics_url 'matomo_analytics_url' => $matomo_analytics_url
]); ]);
$this->load->view('pages/booking_message', html_vars()); $this->load->view('pages/booking_message');
return; return;
} }
@ -159,7 +159,7 @@ class Booking extends EA_Controller {
'matomo_analytics_url' => $matomo_analytics_url 'matomo_analytics_url' => $matomo_analytics_url
]); ]);
$this->load->view('pages/booking_message', html_vars()); $this->load->view('pages/booking_message');
return; return;
} }
@ -233,7 +233,7 @@ class Booking extends EA_Controller {
'customer_data' => $customer, 'customer_data' => $customer,
]); ]);
$this->load->view('pages/booking', html_vars()); $this->load->view('pages/booking');
} }
/** /**

View file

@ -100,6 +100,6 @@ class Booking_cancellation extends EA_Controller {
'exceptions' => $exceptions 'exceptions' => $exceptions
]); ]);
$this->load->view('pages/booking_message', html_vars()); $this->load->view('pages/booking_message');
} }
} }

View file

@ -90,6 +90,6 @@ class Booking_confirmation extends EA_Controller {
'matomo_analytics_url' => setting('matomo_analytics_url'), 'matomo_analytics_url' => setting('matomo_analytics_url'),
]); ]);
$this->load->view('pages/booking_confirmation', html_vars()); $this->load->view('pages/booking_confirmation');
} }
} }

View file

@ -75,7 +75,7 @@ class Booking_settings extends EA_Controller {
'user_display_name' => $this->accounts->get_user_display_name($user_id), 'user_display_name' => $this->accounts->get_user_display_name($user_id),
]); ]);
$this->load->view('pages/booking_settings', html_vars()); $this->load->view('pages/booking_settings');
} }
/** /**

View file

@ -77,7 +77,7 @@ class Business_settings extends EA_Controller {
'user_display_name' => $this->accounts->get_user_display_name($user_id), 'user_display_name' => $this->accounts->get_user_display_name($user_id),
]); ]);
$this->load->view('pages/business_settings', html_vars()); $this->load->view('pages/business_settings');
} }
/** /**

View file

@ -138,7 +138,7 @@ class Calendar extends EA_Controller {
'require_notes' => setting('require_notes'), 'require_notes' => setting('require_notes'),
]); ]);
$this->load->view('pages/calendar', html_vars()); $this->load->view('pages/calendar');
} }
/** /**

View file

@ -72,7 +72,7 @@ class Categories extends EA_Controller {
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug), 'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
]); ]);
$this->load->view('pages/categories', html_vars()); $this->load->view('pages/categories');
} }
/** /**

View file

@ -104,7 +104,7 @@ class Customers extends EA_Controller {
'available_languages' => config('available_languages'), 'available_languages' => config('available_languages'),
]); ]);
$this->load->view('pages/customers', html_vars()); $this->load->view('pages/customers');
} }
/** /**

View file

@ -66,7 +66,7 @@ class General_settings extends EA_Controller {
'user_display_name' => $this->accounts->get_user_display_name($user_id), 'user_display_name' => $this->accounts->get_user_display_name($user_id),
]); ]);
$this->load->view('pages/general_settings', html_vars()); $this->load->view('pages/general_settings');
} }
/** /**

View file

@ -66,7 +66,7 @@ class Legal_settings extends EA_Controller {
'user_display_name' => $this->accounts->get_user_display_name($user_id), 'user_display_name' => $this->accounts->get_user_display_name($user_id),
]); ]);
$this->load->view('pages/legal_settings', html_vars()); $this->load->view('pages/legal_settings');
} }
/** /**

View file

@ -45,7 +45,7 @@ class Login extends EA_Controller {
'company_name' => setting('company_name') 'company_name' => setting('company_name')
]); ]);
$this->load->view('pages/login', html_vars()); $this->load->view('pages/login');
} }
/** /**

View file

@ -32,6 +32,6 @@ class Logout extends EA_Controller {
'company_name' => $company_name 'company_name' => $company_name
]); ]);
$this->load->view('pages/logout', html_vars()); $this->load->view('pages/logout');
} }
} }

View file

@ -88,7 +88,7 @@ class Providers extends EA_Controller {
'services' => $this->services_model->get(), 'services' => $this->services_model->get(),
]); ]);
$this->load->view('pages/providers', html_vars()); $this->load->view('pages/providers');
} }
/** /**

View file

@ -42,7 +42,7 @@ class Recovery extends EA_Controller {
'company_name' => $company_name 'company_name' => $company_name
]); ]);
$this->load->view('pages/recovery', html_vars()); $this->load->view('pages/recovery');
} }
/** /**

View file

@ -88,7 +88,7 @@ class Secretaries extends EA_Controller {
'providers' => $this->providers_model->get(), 'providers' => $this->providers_model->get(),
]); ]);
$this->load->view('pages/secretaries', html_vars()); $this->load->view('pages/secretaries');
} }
/** /**

View file

@ -72,7 +72,7 @@ class Services extends EA_Controller {
'privileges' => $this->roles_model->get_permissions_by_slug($role_slug), 'privileges' => $this->roles_model->get_permissions_by_slug($role_slug),
]); ]);
$this->load->view('pages/services', html_vars()); $this->load->view('pages/services');
} }
/** /**