Skip to content

Commit

Permalink
#2 fix for constant definition in PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmi08 committed Dec 9, 2024
1 parent 2e6e9f8 commit c6bc9d2
Show file tree
Hide file tree
Showing 7 changed files with 573 additions and 578 deletions.
8 changes: 4 additions & 4 deletions helpdesk3/helpdesk.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@
// get the template from themes, if not then use default
if (is_readable(THEME . "helpdesk_template.php"))
{
define(HDU_THEME, THEME . "helpdesk_template.php");
define("HDU_THEME", THEME . "helpdesk_template.php");
}
else
{
define(HDU_THEME, e_PLUGIN . HELPDESK_FOLDER . "/templates/helpdesk_template.php");
define("HDU_THEME", e_PLUGIN . HELPDESK_FOLDER . "/templates/helpdesk_template.php");
}
// get logo from theme, if not see if there is a default, if not then not using logo
if (is_readable(THEME . "helpdesk.png"))
{
define(HDU_LOGO, THEME . "helpdesk.png");
define("HDU_LOGO ", THEME . "helpdesk.png");
} elseif (is_readable(e_PLUGIN . HELPDESK_FOLDER . "/images/helpdesk.png"))
{
define(HDU_LOGO, e_PLUGIN . HELPDESK_FOLDER . "/images/helpdesk.png");
define("HDU_LOGO", e_PLUGIN . HELPDESK_FOLDER . "/images/helpdesk.png");
}
require_once(e_PLUGIN . HELPDESK_FOLDER . "/includes/helpdesk_shortcodes.php");
$gen = new convert;
Expand Down
5 changes: 5 additions & 0 deletions helpdesk3/helpdesk_defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
define("HELPDESK_FOLDER", "helpdesk3");

define("HELPDESK_IMAGES_PATH", e_PLUGIN_ABS. "helpdesk3/images/"); //to replace e_IMAGE , e_PLUGIN_ABS is needed for SEF-URL site !!!

if (!defined("USER_WIDTH"))
{
define("USER_WIDTH", "width:100%");
}
Loading

0 comments on commit c6bc9d2

Please sign in to comment.