From 64dbf5402e03d03a39d668cccc838caf036adb2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 5 Jul 2010 06:26:33 +0000 Subject: [PATCH] Getter getBegUserid() added --- inc/libs/beg_functions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inc/libs/beg_functions.php b/inc/libs/beg_functions.php index 9cd94d10eb..e7faa39850 100644 --- a/inc/libs/beg_functions.php +++ b/inc/libs/beg_functions.php @@ -79,5 +79,17 @@ function isBegRallyeEnabled () { return $GLOBALS['is_beg_rallye_enabled']; } +// "Getter" for beg_userid +function getBegUserid () { + // Do we have cache? + if (!isset($GLOBALS['beg_userid'])) { + // Get it + $GLOBALS['beg_userid'] = getConfig('beg_userid'); + } // END - if + + // Return cache + return $GLOBALS['beg_userid']; +} + // [EOF] ?> -- 2.39.5