renamed rrGetCSS() to rrGetCss(), cleaned up this section in functions.inc
authorrohieb <devnull@localhost>
Fri, 25 Jul 2008 02:30:31 +0000 (04:30 +0200)
committerrohieb <devnull@localhost>
Fri, 25 Jul 2008 02:30:31 +0000 (04:30 +0200)
includes/functions.inc
includes/mod_roomReservationPage.inc

index bdb79a6..1416648 100644 (file)
@@ -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) {
index 29bae69..6d0e018 100644 (file)
@@ -111,7 +111,7 @@ abstract class mod_roomReservationPage {
    * @return void
    */
   protected function beginShow() {
-    html_header("<style type='text/css'>\n".rrGetCSS()."\n</style>\n");
+    html_header("<style type='text/css'>\n".rrGetCss()."\n</style>\n");
     PageBlue(q($this->getTitle()), $this->getIcon());
     
     // print error messages from the configuration
This page took 0.04568 seconds and 4 git commands to generate.