diff --git a/lib/weblib.php b/lib/weblib.php
index b581d9befaf..415cbff7274 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -1895,13 +1895,13 @@ function print_navigation ($navigation) {
}
/**
- * Prints a string in a specified size
+ * Prints a string in a specified size (retained for backward compatibility)
*
* @param string $text The text to be displayed
* @param int $size The size to set the font for text display.
*/
function print_headline($text, $size=2) {
- echo ''. $text .'
'."\n";
+ print_heading($text, 'left', $size);
}
/**
@@ -1911,8 +1911,11 @@ function print_headline($text, $size=2) {
* @param string $align The alignment of the printed paragraph of text
* @param int $size The size to set the font for text display.
*/
-function print_heading($text, $align='center', $size=3) {
- echo '
'. stripslashes_safe($text) .'
'; +function print_heading($text, $align='', $size=2) { + if ($align) { + $align = ' align="'.$align.'"'; + } + echo "'. $icon .''. stripslashes_safe($text);
+ echo "