mirror of
https://github.com/moodle/moodle.git
synced 2025-06-01 21:55:12 +02:00
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:
parent
1f682581a7
commit
0baafc173a
@ -15,4 +15,3 @@ $CASLANGUAGES = array (
|
||||
"french" => "French");
|
||||
|
||||
?>
|
||||
|
||||
|
@ -217,4 +217,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -340,4 +340,3 @@
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -306,4 +306,3 @@ function print_outline_row($mod, $instance, $result) {
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -122,4 +122,3 @@ $mform->display();
|
||||
|
||||
print_footer($COURSE);
|
||||
?>
|
||||
|
||||
|
@ -57,4 +57,3 @@ print_table($table);
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -67,4 +67,3 @@ $mform->display();
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -31,4 +31,3 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_ACCESS_VIOLATION => 'ÓãÇÍíÇÊ ÛíÑ ßÇÝíÉ'
|
||||
);
|
||||
?>
|
||||
|
||||
|
@ -34,5 +34,4 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_NOSUCHDB => 'несъществуваща база данни',
|
||||
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
|
||||
);
|
||||
?>
|
||||
|
||||
?>
|
@ -35,4 +35,3 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
|
||||
);
|
||||
?>
|
||||
|
||||
|
@ -30,5 +30,4 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_NOSUCHDB => 'no such database',
|
||||
DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
|
||||
);
|
||||
?>
|
||||
|
||||
?>
|
@ -32,5 +32,4 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_NOSUCHDB => 'nie znaleziono bazy',
|
||||
DB_ERROR_ACCESS_VIOLATION => 'niedostateczne uprawnienia'
|
||||
);
|
||||
?>
|
||||
|
||||
?>
|
@ -33,4 +33,3 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_ACCESS_VIOLATION => 'permisiuni insuficiente'
|
||||
);
|
||||
?>
|
||||
|
||||
|
@ -31,4 +31,3 @@ $ADODB_LANG_ARRAY = array (
|
||||
DB_ERROR_ACCESS_VIOLATION => 'permissions ไม่พอ'
|
||||
);
|
||||
?>
|
||||
|
||||
|
@ -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$
|
||||
|
@ -93,4 +93,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1178,4 +1178,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -107,4 +107,4 @@
|
||||
break;
|
||||
}
|
||||
echo '<hr />';
|
||||
?>
|
||||
?>
|
||||
|
@ -60,4 +60,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -145,4 +145,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -35,4 +35,3 @@
|
||||
redirect("$CFG->wwwroot/course/view.php?id=$course->id");
|
||||
|
||||
?>
|
||||
|
||||
|
@ -28,4 +28,3 @@
|
||||
"lesson.php?action=delete&id=$cm->id&pageid=$pageid&sesskey=".$USER->sesskey,
|
||||
"view.php?id=$cm->id");
|
||||
?>
|
||||
|
||||
|
@ -87,4 +87,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -43,4 +43,3 @@ $query .= '&mklmsstyle='.$stylesheets;
|
||||
|
||||
redirect($CFG->hiveprotocol .'://'. $CFG->hivehost .':'. $CFG->hiveport .''. $CFG->hivepath .'?'.$query);
|
||||
?>
|
||||
|
||||
|
@ -79,4 +79,3 @@
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -309,4 +309,3 @@
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
@ -155,4 +155,3 @@
|
||||
print_footer('none');
|
||||
|
||||
?>
|
||||
|
||||
|
@ -1364,4 +1364,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -121,4 +121,3 @@
|
||||
print_footer($course);
|
||||
|
||||
?>
|
||||
|
||||
|
@ -92,4 +92,3 @@
|
||||
print_footer('none');
|
||||
|
||||
?>
|
||||
|
||||
|
@ -141,4 +141,3 @@
|
||||
|
||||
print_footer($COURSE);
|
||||
?>
|
||||
|
||||
|
@ -20,4 +20,3 @@
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -28,5 +28,3 @@ if (!empty($THEME->chameleonenabled)) {
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<?php print_custom_corners_end(false, 'content'); ?>
|
||||
</div> <!-- end div containerContent -->
|
||||
<!-- START OF FOOTER -->
|
||||
|
@ -28,5 +28,3 @@ if (!empty($THEME->chameleonenabled)) {
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user