Fix MDL-11632: Multiple files with emtpy lines outside PHP open/close tags

There are multiple issues with Moodle files containing empty or blank lines
(lines consisting of white spaces or tabs only) and/or white space before or
after the PHP open and close tags, notably with config.php and theme files.
This commit is contained in:
iarenaza 2007-10-09 21:43:28 +00:00
parent 1f682581a7
commit 0baafc173a
35 changed files with 10 additions and 40 deletions

View File

@ -15,4 +15,3 @@ $CASLANGUAGES = array (
"french" => "French");
?>

View File

@ -217,4 +217,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
}
?>

View File

@ -340,4 +340,3 @@
?>

View File

@ -306,4 +306,3 @@ function print_outline_row($mod, $instance, $result) {
}
?>

View File

@ -122,4 +122,3 @@ $mform->display();
print_footer($COURSE);
?>

View File

@ -57,4 +57,3 @@ print_table($table);
print_footer($course);
?>

View File

@ -67,4 +67,3 @@ $mform->display();
print_footer($course);
?>

View File

@ -31,4 +31,3 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_ACCESS_VIOLATION => 'ÓãÇÍíÇÊ ÛíÑ ßÇÝíÉ'
);
?>

View File

@ -34,5 +34,4 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_NOSUCHDB => 'несъществуваща база данни',
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
?>
?>

View File

@ -35,4 +35,3 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
?>

View File

@ -30,5 +30,4 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_NOSUCHDB => 'no such database',
DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
);
?>
?>

View File

@ -32,5 +32,4 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_NOSUCHDB => 'nie znaleziono bazy',
DB_ERROR_ACCESS_VIOLATION => 'niedostateczne uprawnienia'
);
?>
?>

View File

@ -33,4 +33,3 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_ACCESS_VIOLATION => 'permisiuni insuficiente'
);
?>

View File

@ -31,4 +31,3 @@ $ADODB_LANG_ARRAY = array (
DB_ERROR_ACCESS_VIOLATION => 'permissions ไม่พอ'
);
?>

View File

@ -21,7 +21,12 @@ Our changes:
working properly. Simplified logic (now that we are FETCH_ASSOC). Work in progress
for the annoying http://tracker.moodle.org/browse/MDL-6877.
Once fixed by adodb guys, we'll return to their official distro.
* lang/adodb-ar.inc.php lang/adodb-bg.inc.php lang/adodb-bgutf8.inc.php
lang/adodb-en.inc.php lang/adodb-pl.inc.php lang/adodb-ro.inc.php
lang/adodb_th.inc.php - Removed leading white space outside PHP open/close tags
(see http://tracker.moodle.org/browse/MDL-11632).
skodak
skodak,iarenaza
$Id$

View File

@ -93,4 +93,3 @@
print_footer($course);
?>

View File

@ -1178,4 +1178,3 @@
print_footer($course);
?>

View File

@ -107,4 +107,4 @@
break;
}
echo '<hr />';
?>
?>

View File

@ -60,4 +60,3 @@
print_footer($course);
?>

View File

@ -145,4 +145,3 @@
print_footer($course);
?>

View File

@ -35,4 +35,3 @@
redirect("$CFG->wwwroot/course/view.php?id=$course->id");
?>

View File

@ -28,4 +28,3 @@
"lesson.php?action=delete&amp;id=$cm->id&amp;pageid=$pageid&amp;sesskey=".$USER->sesskey,
"view.php?id=$cm->id");
?>

View File

@ -87,4 +87,3 @@
print_footer($course);
?>

View File

@ -43,4 +43,3 @@ $query .= '&mklmsstyle='.$stylesheets;
redirect($CFG->hiveprotocol .'://'. $CFG->hivehost .':'. $CFG->hiveport .''. $CFG->hivepath .'?'.$query);
?>

View File

@ -79,4 +79,3 @@
}
}
?>

View File

@ -309,4 +309,3 @@
?>

View File

@ -155,4 +155,3 @@
print_footer('none');
?>

View File

@ -1364,4 +1364,3 @@
print_footer($course);
?>

View File

@ -121,4 +121,3 @@
print_footer($course);
?>

View File

@ -92,4 +92,3 @@
print_footer('none');
?>

View File

@ -141,4 +141,3 @@
print_footer($COURSE);
?>

View File

@ -20,4 +20,3 @@
}
?>

View File

@ -28,5 +28,3 @@ if (!empty($THEME->chameleonenabled)) {
}
}
?>

View File

@ -1,4 +1,3 @@
<?php print_custom_corners_end(false, 'content'); ?>
</div> <!-- end div containerContent -->
<!-- START OF FOOTER -->

View File

@ -28,5 +28,3 @@ if (!empty($THEME->chameleonenabled)) {
}
}
?>