September 10, 201015 yr A few minor changes to the template.php I made the following changes to webGui/template.php to assist in my development. They clean up some errors that will show up when debugging is enabled. (The added code is in "blue") Joe L. In webGui/template.php in the function build_pages: // assign defaults if (!array_key_exists( 'Author', $page ) || strlen($page['Author']) == 0) $page['Author'] = "anonymous"; if (!array_key_exists( 'Version', $page ) || strlen($page['Version']) == 0) $page['Version'] = "unknown"; if (!array_key_exists( 'Title', $page ) || strlen($page['Title']) == 0) $page['Title'] = $page['Title']; if (!array_key_exists( 'Type', $page ) || strlen($page['Type']) == 0) $page['Type'] = "echo 'Not much here.'"; if (!array_key_exists( 'Icon', $page ) || strlen($page['Icon']) == 0) $page['Icon'] = "default.png"; if (!array_key_exists( 'Menu', $page) || strlen($page['Menu']) == 0) $page['Menu'] = "";
Archived
This topic is now archived and is closed to further replies.