From cca1d12e03389bc2781990a4f8afe12138a4927d Mon Sep 17 00:00:00 2001 From: Reynaldi Arya <45594622+reynaldiarya@users.noreply.github.com> Date: Mon, 9 Jan 2023 17:18:42 +0700 Subject: [PATCH] Add Custom Favicon (#674) * Add Custom Favicon * Foss Update add Favicon * foss update --- src/foss-update.php | 13 ++++++++++++- src/install/sql/content.sql | 5 +++-- .../Invoice/html_client/mod_invoice_print.html.twig | 2 +- src/modules/System/Service.php | 7 +++++++ .../System/html_admin/mod_system_settings.html.twig | 8 +++++++- .../admin_default/html/layout_default.html.twig | 2 +- .../admin_default/html/layout_login.html.twig | 2 +- src/themes/huraga/html/layout_default.html.twig | 2 +- src/themes/huraga/html/layout_public.html.twig | 2 +- 9 files changed, 34 insertions(+), 9 deletions(-) diff --git a/src/foss-update.php b/src/foss-update.php index 320b12613..baba9231c 100644 --- a/src/foss-update.php +++ b/src/foss-update.php @@ -22,6 +22,17 @@ /** * Migration steps from BoxBilling to FOSSBilling. */ +class FOSSPatch_26 extends FOSSPatchAbstract +{ + public function patch() + { + //Added favicon settings + $q= "INSERT INTO setting ('id', 'param', 'value', 'public', 'category', 'hash', 'created_at', 'updated_at') VALUES (29,'company_favicon','themes/huraga/assets/favicon.ico',0,NULL,NULL,'2023-01-08 12:00:00','2023-01-08 12:00:00');"; + $this->execSql($q); + } +} + + class FOSSPatch_25 extends FOSSPatchAbstract { public function patch() @@ -134,4 +145,4 @@ foreach ($patches as $class) { } error_log('FOSSBilling update completed'); -echo 'Update completed. You are using FOSSBilling ' . Box_Version::VERSION . PHP_EOL; +echo 'Update completed. You are using FOSSBilling ' . Box_Version::VERSION . PHP_EOL; \ No newline at end of file diff --git a/src/install/sql/content.sql b/src/install/sql/content.sql index ed6e5c81f..26e131171 100644 --- a/src/install/sql/content.sql +++ b/src/install/sql/content.sql @@ -343,7 +343,8 @@ VALUES (25,'nameserver_3',NULL,0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'), (26,'nameserver_4',NULL,0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'), (27,'funds_min_amount','10',0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'), - (28,'funds_max_amount','200',0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'); + (28,'funds_max_amount','200',0,NULL,NULL,'2022-12-01 12:00:00','2022-12-01 12:00:00'), + (29,'company_favicon','themes/huraga/assets/favicon.ico',0,NULL,NULL,'2023-01-08 12:00:00','2023-01-08 12:00:00'); /*!40000 ALTER TABLE `setting` ENABLE KEYS */; UNLOCK TABLES; @@ -476,4 +477,4 @@ UNLOCK TABLES; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file diff --git a/src/modules/Invoice/html_client/mod_invoice_print.html.twig b/src/modules/Invoice/html_client/mod_invoice_print.html.twig index 57b43b677..251df2589 100644 --- a/src/modules/Invoice/html_client/mod_invoice_print.html.twig +++ b/src/modules/Invoice/html_client/mod_invoice_print.html.twig @@ -9,7 +9,7 @@ - +