http range request ass bandits from redhat for their installer and
[glcas.git] / libglcas / web.php
index a8d013a..96d30b1 100644 (file)
@@ -43,7 +43,7 @@ function GLCASMessageBuilder()
        echo "<i>Messages not implemented yet</i>";
 }
 
-function GLCASpageBuilder($bodyClass, $bodyFunction, $title="GLCAS")
+function GLCASpageBuilder($bodyClass, $bodyFunction, $bodycontent, $title="GLCAS")
 {
        global $WEB_ROOT_FS, $BASE_URL;
        
@@ -103,7 +103,9 @@ function GLCASpageBuilder($bodyClass, $bodyFunction, $title="GLCAS")
        
        if($bodyClass != null) {
                $bodyClass->$bodyFunction($url);
-       } else $bodyFunction($url);
+       } else if( $bodyFunction != null) {
+               $bodyFunction($url);
+       } else echo $bodycontent;
        echo "</td></tr></table>";