From 378ded5e3b2c5827d9d622c323e483f5163d75ae Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Thu, 20 Feb 2014 19:56:21 +0000 Subject: [PATCH] Use the company name for the copyright. --- include/class.company.php | 14 +++++++++++--- include/client/footer.inc.php | 8 ++++---- include/staff/footer.inc.php | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/include/class.company.php b/include/class.company.php index 5122239f2..2c8758259 100644 --- a/include/class.company.php +++ b/include/class.company.php @@ -47,12 +47,20 @@ class Company { } } - function asVar() { + function getInfo() { + return $this->getForm()->getClean(); + } + + function getName() { return $this->getVar('name'); } - function getInfo() { - return $this->getForm()->getClean(); + function asVar() { + return $this->getName(); + } + + function __toString() { + return $this->getName(); } /** diff --git a/include/client/footer.inc.php b/include/client/footer.inc.php index 3398d1b93..b6b024d58 100644 --- a/include/client/footer.inc.php +++ b/include/client/footer.inc.php @@ -1,13 +1,13 @@ </div> </div> <div id="footer"> - <p>Copyright © <?php echo date('Y'); ?> <a href="http://osticket.com" target="_blank" title="osTicket">osTicket.com</a> - All rights reserved.</p> - <a id="poweredBy" href="http://osticket.com" target="_blank">Powered by osTicket</a> + <p>Copyright © <?php echo date('Y'); ?> <?php echo $ost->company :? 'osTicket.com'; ?> - All rights reserved.</p> + <a id="poweredBy" href="http://osticket.com" target="_blank">Helpdesk software - powered by osTicket</a> </div> <div id="overlay"></div> <div id="loading"> <h4>Please Wait!</h4> <p>Please wait... it will take a second!</p> -</div> +</div> </body> -</html> +</html> diff --git a/include/staff/footer.inc.php b/include/staff/footer.inc.php index aa4e2f113..a77bc0f4a 100644 --- a/include/staff/footer.inc.php +++ b/include/staff/footer.inc.php @@ -1,6 +1,6 @@ </div> <div id="footer"> - Copyright © 2006-<?php echo date('Y'); ?> osTicket.com. All Rights Reserved. + Copyright © 2006-<?php echo date('Y'); ?> <?php echo $ost->company ?: 'osTicket.com'; ?> All Rights Reserved. </div> <?php if(is_object($thisstaff) && $thisstaff->isStaff()) { ?> -- GitLab