Passing variable from config.php to business_logic.php

nassausky

Member
Inside config.php there is a list of icon variables. When I added a new variable, business_logic.php doesn't detect it. Is there some kind of connection between config.php & business_logic.php that I'm missing.

Thanks
 

nassausky

Member
I just ran out for a bit but to clear it up.

I was creating an icon in the results table called dupe.png located in the images folder where the rest of the icons are. I added a variable using the following line :

I'm using in dadabik version 6.2

Inside include/config.php:

[pre]
$dupe_icon = 'images/dupe.png';
[/pre]

Inside include/business_logic.php

[pre]
// The following line is around line 4980
if ($enable_edit == "1" && $master_table_function !== 'details')
//
echo "DUPE=".$dupe_icon."<br />";
echo "EDIT=".$edit_icon."<br />";
[/pre]

The following output shows above the result table with the following information:

Notice: Undefined variable: dupe_icon in T:\xampp\htdocs\calendre\include\business_logic.php on line 5079
DUPE=
EDIT=images/edit.png


So for some reason it's not getting the result of the variable in the business_logic.php code at that section.

SOLVED:
As I was looking around somehow I missed the global variable declaration passing $edit_icon into the results table. Sorry I just added $dupe_icon to global and voila solved.
 
Top