Permalink
Browse files

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.
  • Loading branch information...
iarenaza
iarenaza committed Oct 10, 2007
1 parent f050e82 commit 23290eea4dc12a334f1b61082d53a8c48750135a
View
@@ -423,4 +423,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
}
?>
-
View
@@ -112,7 +112,3 @@ <h4><?php print_string("auth_cas_server_settings", "auth") ?> </h4>
<?php
include($CFG->dirroot.'/auth/ldap/config.html');
?>
-
-
-
-
View
@@ -15,4 +15,3 @@
print_footer();
exit;
?>
-
View
@@ -47,4 +47,3 @@ function auth_user_login ($username, $password) {
$rauth->close();
}
?>
-
@@ -212,4 +212,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
}
?>
-
View
@@ -81,4 +81,3 @@
close_window_button();
?>
-
@@ -126,4 +126,3 @@ function print_outline_row($mod, $instance, $result) {
}
?>
-
View
@@ -263,4 +263,3 @@
?>
-
View
@@ -285,4 +285,3 @@ function print_outline_row($mod, $instance, $result) {
}
?>
-
@@ -31,4 +31,3 @@
DB_ERROR_ACCESS_VIOLATION => 'سماحيات غير كافية'
);
?>
-
@@ -34,5 +34,4 @@
DB_ERROR_NOSUCHDB => 'несъществуваща база данни',
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
-?>
-
+?>
@@ -1,4 +1,4 @@
-<?php
+<?php
/*
Bulgarian language, v1.0, 25.03.2004, encoding by UTF-8 charset
contributed by Valentin Sheiretsky <valio#valio.eu.org>
@@ -34,5 +34,4 @@
DB_ERROR_NOSUCHDB => 'несъществуваща база данни',
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
-?>
-
+?>
@@ -30,5 +30,4 @@
DB_ERROR_NOSUCHDB => 'no such database',
DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
);
-?>
-
+?>
@@ -32,5 +32,4 @@
DB_ERROR_NOSUCHDB => 'nie znaleziono bazy',
DB_ERROR_ACCESS_VIOLATION => 'niedostateczne uprawnienia'
);
-?>
-
+?>
@@ -33,4 +33,3 @@
DB_ERROR_ACCESS_VIOLATION => 'permisiuni insuficiente'
);
?>
-
@@ -20,6 +20,10 @@ Our changes:
for the annoying http://tracker.moodle.org/browse/MDL-6877.
Once fixed by adodb guys, we'll return to their official distro.
* removed bogus "_connec" from first line of adodb-postgres64.inc.php
+ * 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/trailing white space outside PHP open/close tags
+ (see http://tracker.moodle.org/browse/MDL-11632).
-skodak
-11 October 2006
+skodak,iarenaza
+10 October 2007
View
@@ -335,4 +335,3 @@
?>
-
@@ -1,4 +1,3 @@
-
<?php
// only display this help message if we are being forced to change
if ($forcepassword) {
@@ -293,6 +293,3 @@
print_simple_box_end();
print_footer();
?>
-
-
-
View
@@ -91,4 +91,3 @@
print_footer($course);
?>
-
@@ -1173,4 +1173,3 @@
print_footer($course);
?>
-
View
@@ -107,4 +107,4 @@
break;
}
echo '<hr />';
-?>
+?>
View
@@ -56,4 +56,3 @@
print_footer($course);
?>
-
View
@@ -144,4 +144,3 @@
print_footer($course);
?>
-
View
@@ -35,4 +35,3 @@
redirect("$CFG->wwwroot/course/view.php?id=$course->id");
?>
-
@@ -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
@@ -89,4 +89,3 @@
print_footer($course);
?>
-
@@ -130,4 +130,4 @@
</td></tr>
-<?php print_visible_setting($form); ?>
+<?php print_visible_setting($form); ?>
@@ -43,4 +43,3 @@
redirect($CFG->hiveprotocol .'://'. $CFG->hivehost .':'. $CFG->hiveport .''. $CFG->hivepath .'?'.$query);
?>
-
@@ -213,4 +213,3 @@
</td></tr>
<?php print_visible_setting($form); ?>
-
@@ -146,4 +146,3 @@
</td></tr>
<?php print_visible_setting($form); ?>
-
View
@@ -53,4 +53,3 @@
}
}
?>
-
View
@@ -239,4 +239,3 @@
?>
-
View
@@ -149,4 +149,3 @@
print_footer('none');
?>
-
@@ -1363,4 +1363,3 @@
print_footer($course);
?>
-
View
@@ -117,4 +117,3 @@
print_footer($course);
?>
-
@@ -89,4 +89,3 @@
print_footer('none');
?>
-
View
@@ -208,4 +208,3 @@
print_simple_box_end();
print_footer($course);
?>
-
View
@@ -20,4 +20,3 @@
}
?>
-
@@ -30,5 +30,3 @@
}
}
?>
-
-

0 comments on commit 23290ee

Please sign in to comment.