Revision 1917
Added by Dietmar about 11 years ago
include.php | ||
---|---|---|
4 | 4 |
* @category module |
5 | 5 |
* @package show_menu2 |
6 | 6 |
* @author WebsiteBaker Project |
7 |
* @copyright 2004-2009, Ryan Djurovich
|
|
8 |
* @copyright 2009-2011, Website Baker Org. e.V.
|
|
9 |
* @link http://www.websitebaker2.org/
|
|
7 |
* @copyright Brodie Thiesfield
|
|
8 |
* @copyright 2009-2013, WebsiteBaker Org. e.V.
|
|
9 |
* @link http://www.websitebaker.org/
|
|
10 | 10 |
* @license http://www.gnu.org/licenses/gpl.html |
11 | 11 |
* @platform WebsiteBaker 2.7.0 | 2.8.x |
12 | 12 |
* @requirements PHP 5.2.2 and higher |
13 | 13 |
* @version $Id$ |
14 |
* @filesource $HeadURL$
|
|
14 |
* @filesource $HeadURL$
|
|
15 | 15 |
* @lastmodified $Date$ |
16 | 16 |
* |
17 | 17 |
*/ |
... | ... | |
444 | 444 |
) |
445 | 445 |
{ |
446 | 446 |
global $wb; |
447 |
|
|
447 |
$database = WbDatabase::getInstance(); |
|
448 |
$iQueryStart = $database->getQueryCount; |
|
448 | 449 |
// extract the flags and set $aOptions to an array |
449 | 450 |
$flags = 0; |
450 | 451 |
if (is_int($aOptions)) { |
... | ... | |
722 | 723 |
if (($flags & SM2_NOCACHE) != 0) { |
723 | 724 |
unset($GLOBALS['show_menu2_data'][$aMenu]); |
724 | 725 |
} |
725 |
|
|
726 |
if(defined('DEBUG') && (DEBUG)) { |
|
727 |
$iQueriesDone = $database->getQueryCount - $iQueryStart; |
|
728 |
return $retval."\n".'<!-- Queries: '.$iQueriesDone.' -->'."\n"; |
|
729 |
} |
|
726 | 730 |
return $retval; |
727 | 731 |
} |
728 | 732 |
|
Also available in: Unified diff
! /modules/show_menu2/ set to version 4.9.7
DEBUG == true show query counts