X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/5760b2a8d146d7c186daab1743c84683d0d84cea..967194ab389c977d8c7ed87f064a0326c1ff72d2:/includes/functions.inc diff --git a/includes/functions.inc b/includes/functions.inc old mode 100755 new mode 100644 index 1704bc5..1416648 --- a/includes/functions.inc +++ b/includes/functions.inc @@ -183,7 +183,7 @@ function isMailAddress($strAddr) { * @return void */ function rrInsertLog($strLog) { - log_insert("Raumbelegungsplan: " . $strLog); + log_insert($strLog, null, "Room Reservation Schedule"); } /** @@ -222,7 +222,7 @@ function rrGetMonday($ts = null) { } /** (array of strings) Additional CSS rules */ -$rsLocalCss = array(); +$GLOBALS["rrLocalCss"] = array(); /** * Add CSS rules to the page @@ -230,17 +230,17 @@ $rsLocalCss = array(); * @return void */ function rrAddCss($s) { - rrDebug("rsAddCss: add \"$s\""); - $GLOBALS["rsLocalCss"][] = $s; + rrDebug("rrAddCss: add \"$s\""); + $GLOBALS["rrLocalCss"][] = $s; } /** - * Get CSS rules that have been added with rmAddCss() + * Get CSS rules that have been added with rrAddCss() * @return string */ -function rrGetCSS() { - rrDebug("rsGetCss: Local CSS is ".var_export($GLOBALS["rsLocalCss"], true)); - return implode("\n", $GLOBALS["rsLocalCss"]); +function rrGetCss() { + rrDebug("rrGetCss: Local CSS is ".var_export($GLOBALS["rrLocalCss"], true)); + return implode("\n", $GLOBALS["rrLocalCss"]); } function rrDebug($s, $bReturn = false) {