diff --git a/webservice/amf/testclient/index.php b/webservice/amf/testclient/index.php
index 4ef8afd8816d6..1bcf6c78f0f23 100644
--- a/webservice/amf/testclient/index.php
+++ b/webservice/amf/testclient/index.php
@@ -21,4 +21,4 @@
echo '
You need to install Flash 9.0
';
-print_footer();
\ No newline at end of file
+echo $OUTPUT->footer();
diff --git a/webservice/documentation.php b/webservice/documentation.php
index 06f59c779607a..356372de3e704 100644
--- a/webservice/documentation.php
+++ b/webservice/documentation.php
@@ -35,7 +35,7 @@
webservice_lib::display_webservices_availability($protocol);
generate_documentation($protocol);
generate_functionlist();
-print_footer();
+echo $OUTPUT->footer();
diff --git a/webservice/soap/testclient/zend_soap_client.php b/webservice/soap/testclient/zend_soap_client.php
index 48fc1c7dab1c4..c753fc89f6c9a 100644
--- a/webservice/soap/testclient/zend_soap_client.php
+++ b/webservice/soap/testclient/zend_soap_client.php
@@ -42,7 +42,7 @@
if (!webservice_lib::display_webservices_availability("soap")) {
echo "
";
echo "Please fix the previous problem(s), the testing session has been interupted.";
- print_footer();
+ echo $OUTPUT->footer();
exit();
}
@@ -130,7 +130,7 @@
print "";
/// Display Moodle page footer
-print_footer();
+echo $OUTPUT->footer();
/**
@@ -144,4 +144,4 @@ function printLastRequestResponse($client) {
print "";
}
-?>
\ No newline at end of file
+?>