Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Oct 10, 2007
1 parent 6886503 commit e0f57f0
Show file tree
Hide file tree
Showing 32 changed files with 9 additions and 35 deletions.
1 change: 0 additions & 1 deletion admin/uploaduser.php
Expand Up @@ -421,4 +421,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
}

?>

1 change: 0 additions & 1 deletion auth/cas/languages.php
Expand Up @@ -15,4 +15,3 @@
"french" => "French");

?>

1 change: 0 additions & 1 deletion course/import/groups/index.php
Expand Up @@ -209,4 +209,3 @@ function my_file_get_contents($filename, $use_include_path = 0) {
}

?>

1 change: 0 additions & 1 deletion course/search.php
Expand Up @@ -327,4 +327,3 @@


?>

1 change: 0 additions & 1 deletion course/user.php
Expand Up @@ -289,4 +289,3 @@ function print_outline_row($mod, $instance, $result) {
}

?>

1 change: 0 additions & 1 deletion lib/adodb/lang/adodb-ar.inc.php
Expand Up @@ -31,4 +31,3 @@
DB_ERROR_ACCESS_VIOLATION => 'سماحيات غير كافية'
);
?>

1 change: 0 additions & 1 deletion lib/adodb/lang/adodb-bg.inc.php
Expand Up @@ -35,4 +35,3 @@
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
?>

3 changes: 1 addition & 2 deletions lib/adodb/lang/adodb-bgutf8.inc.php
@@ -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>
Expand Down Expand Up @@ -35,4 +35,3 @@
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
?>

1 change: 0 additions & 1 deletion lib/adodb/lang/adodb-en.inc.php
Expand Up @@ -31,4 +31,3 @@
DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
);
?>

1 change: 0 additions & 1 deletion lib/adodb/lang/adodb-pl.inc.php
Expand Up @@ -33,4 +33,3 @@
DB_ERROR_ACCESS_VIOLATION => 'niedostateczne uprawnienia'
);
?>

1 change: 0 additions & 1 deletion lib/adodb/lang/adodb-ro.inc.php
Expand Up @@ -33,4 +33,3 @@
DB_ERROR_ACCESS_VIOLATION => 'permisiuni insuficiente'
);
?>

8 changes: 6 additions & 2 deletions lib/adodb/readme_moodle.txt
Expand Up @@ -22,6 +22,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 leadinag/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
1 change: 0 additions & 1 deletion mod/choice/index.php
Expand Up @@ -91,4 +91,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/exercise/assessments.php
Expand Up @@ -1173,4 +1173,3 @@
print_footer($course);

?>

2 changes: 1 addition & 1 deletion mod/glossary/tabs.html
Expand Up @@ -107,4 +107,4 @@
break;
}
echo '<hr />';
?>
?>
2 changes: 1 addition & 1 deletion mod/glossary/tabs.php
Expand Up @@ -107,4 +107,4 @@
break;
}
echo '<hr />';
?>
?>
1 change: 0 additions & 1 deletion mod/journal/index.php
Expand Up @@ -56,4 +56,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/journal/report.php
Expand Up @@ -141,4 +141,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/label/view.php
Expand Up @@ -35,4 +35,3 @@
redirect("$CFG->wwwroot/course/view.php?id=$course->id");

?>

1 change: 0 additions & 1 deletion mod/lesson/action/confirmdelete.php
Expand Up @@ -28,4 +28,3 @@
"lesson.php?action=delete&amp;id=$cm->id&amp;pageid=$pageid&amp;sesskey=".$USER->sesskey,
"view.php?id=$cm->id");
?>

1 change: 0 additions & 1 deletion mod/resource/index.php
Expand Up @@ -87,4 +87,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/resource/type/repository/hive/openlitepublish.php
Expand Up @@ -43,4 +43,3 @@

redirect($CFG->hiveprotocol .'://'. $CFG->hivehost .':'. $CFG->hiveport .''. $CFG->hivepath .'?'.$query);
?>

1 change: 0 additions & 1 deletion mod/scorm/datamodel.php
Expand Up @@ -79,4 +79,3 @@
}
}
?>

1 change: 0 additions & 1 deletion mod/survey/download.php
Expand Up @@ -309,4 +309,3 @@


?>

1 change: 0 additions & 1 deletion mod/workshop/assess.php
Expand Up @@ -149,4 +149,3 @@
print_footer('none');

?>

1 change: 0 additions & 1 deletion mod/workshop/assessments.php
Expand Up @@ -1364,4 +1364,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/workshop/upload.php
Expand Up @@ -117,4 +117,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/workshop/viewassessment.php
Expand Up @@ -89,4 +89,3 @@
print_footer('none');

?>

1 change: 0 additions & 1 deletion question/export.php
Expand Up @@ -201,4 +201,3 @@
print_box_end();
print_footer($course);
?>

1 change: 0 additions & 1 deletion question/format/blackboard/format.php
@@ -1,4 +1,3 @@

<?php // $Id$

////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 0 additions & 1 deletion sso/hive/login.php
Expand Up @@ -20,4 +20,3 @@
}

?>

2 changes: 0 additions & 2 deletions theme/chameleon/ui/chameleon.php
Expand Up @@ -28,5 +28,3 @@
}
}
?>


0 comments on commit e0f57f0

Please sign in to comment.