Esempio n. 1
0
 /**
  * Conditionally enables the log.
  *
  * @param boolean $enabled Whether or not to enable the log.
  * @param array   $getVars The PHP $_GET array.
  *
  * @return void
  */
 public static function setEnabled($enabled, $getVars)
 {
     self::$_enabled = $enabled && isset($getVars['tubepress_debug']) && $getVars['tubepress_debug'] == 'true';
     if (self::$_enabled) {
         self::$_birthDate = microtime(true);
     }
 }