forked from science-ation/science-ation
Replace the version debug with a single function call (instead of array index and a strlen) so it is more efficient (since it's called on every page).
This commit is contained in:
parent
a430aadab3
commit
372c2a55c7
@ -492,8 +492,7 @@ global $config;
|
||||
<div id="footer">
|
||||
<?
|
||||
//we only show the debug session variables if we have an ODD numbered version.
|
||||
$lastdigit=$config['version'][strlen($config['version'])-1];
|
||||
if($lastdigit%2!=0)
|
||||
if(substr($config['version'], -1) % 2 != 0)
|
||||
{
|
||||
echo "DEBUG:";
|
||||
print_r($_SESSION);
|
||||
|
Loading…
Reference in New Issue
Block a user