Overlook determine global variable - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Overlook determine global variable (/showthread.php?tid=433) |
Overlook determine global variable - kirillaristov - 2010-02-26 In GetSimple v2 I have found overlook determine global variable: admin\inc\theme_functions.php; function get_page_url (); line 74: I have add global $inter; Without it the page title in header is incomplete. Code: function get_page_url($a=false) { Overlook determine global variable - ccagle8 - 2010-02-26 I wonder why, we set $inter in the function itself. Why would it need to be global? Code: if ($urls != '') { Overlook determine global variable - kirillaristov - 2010-02-26 no, you determine $inter in first IF, but in last ELSE the $inter is null. See last ELSE Code: if (!$a) Overlook determine global variable - ccagle8 - 2010-02-26 you are right, but I think i would fix it another way: Code: function get_page_url($a=false) { Overlook determine global variable - ccagle8 - 2010-02-26 haha, this was already fixed in 2.01 Code: function get_page_url($a=false) { Overlook determine global variable - kirillaristov - 2010-02-26 cool! |