From 4013324713bbaa1d36db1d47d0a70da5c22fca93 Mon Sep 17 00:00:00 2001 From: Guillaume Turri Date: Sun, 6 Jan 2019 11:01:00 +0100 Subject: [PATCH] Fix "Deprecated" error This patch fixes the error Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; --- stylish-theme/qa-admin-options.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stylish-theme/qa-admin-options.php b/stylish-theme/qa-admin-options.php index 54a433d..075a87f 100644 --- a/stylish-theme/qa-admin-options.php +++ b/stylish-theme/qa-admin-options.php @@ -2,7 +2,7 @@ class qa_html_theme_layer extends qa_html_theme_base { var $theme_directory; var $theme_url; - function qa_html_theme_layer($template, $content, $rooturl, $request) + function __construct($template, $content, $rooturl, $request) { global $qa_layers; $this->theme_directory = $qa_layers['Theme Options']['directory']; @@ -523,4 +523,4 @@ function doctype(){ } /* Omit PHP closing tag to help avoid accidental output -*/ \ No newline at end of file +*/