Skip to content

Commit

Permalink
Fix MDL-11632: Multiple files with emtpy lines outside PHP open/close…
Browse files Browse the repository at this point in the history
… 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 9, 2007
1 parent 1f68258 commit 0baafc1
Show file tree
Hide file tree
Showing 35 changed files with 10 additions and 40 deletions.
1 change: 0 additions & 1 deletion auth/cas/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
"french" => "French");

?>

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

?>

1 change: 0 additions & 1 deletion course/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,3 @@


?>

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

?>

1 change: 0 additions & 1 deletion grade/edit/letter/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,3 @@

print_footer($COURSE);
?>

1 change: 0 additions & 1 deletion grade/edit/letter/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion grade/edit/settings/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@
print_footer($course);

?>

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

3 changes: 1 addition & 2 deletions lib/adodb/lang/adodb-bg.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@
DB_ERROR_NOSUCHDB => 'несъществуваща база данни',
DB_ERROR_ACCESS_VIOLATION => 'нямате достатъчно права'
);
?>

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

3 changes: 1 addition & 2 deletions lib/adodb/lang/adodb-en.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@
DB_ERROR_NOSUCHDB => 'no such database',
DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
);
?>

?>
3 changes: 1 addition & 2 deletions lib/adodb/lang/adodb-pl.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@
DB_ERROR_NOSUCHDB => 'nie znaleziono bazy',
DB_ERROR_ACCESS_VIOLATION => 'niedostateczne uprawnienia'
);
?>

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

1 change: 0 additions & 1 deletion lib/adodb/lang/adodb_th.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@
DB_ERROR_ACCESS_VIOLATION => 'permissions ไม่พอ'
);
?>

7 changes: 6 additions & 1 deletion lib/adodb/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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$
1 change: 0 additions & 1 deletion mod/choice/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/exercise/assessments.php
Original file line number Diff line number Diff line change
Expand Up @@ -1178,4 +1178,3 @@
print_footer($course);

?>

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

?>

1 change: 0 additions & 1 deletion mod/journal/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/label/view.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/resource/type/repository/hive/openlitepublish.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@
}
}
?>

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


?>

1 change: 0 additions & 1 deletion mod/workshop/assess.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,3 @@
print_footer('none');

?>

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

?>

1 change: 0 additions & 1 deletion mod/workshop/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,3 @@
print_footer($course);

?>

1 change: 0 additions & 1 deletion mod/workshop/viewassessment.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,3 @@
print_footer('none');

?>

1 change: 0 additions & 1 deletion question/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,3 @@

print_footer($COURSE);
?>

1 change: 0 additions & 1 deletion sso/hive/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
}

?>

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


1 change: 0 additions & 1 deletion theme/custom_corners/footer.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<?php print_custom_corners_end(false, 'content'); ?>
</div> <!-- end div containerContent -->
<!-- START OF FOOTER -->
Expand Down
2 changes: 0 additions & 2 deletions theme/custom_corners/ui/chameleon.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@
}
}
?>


0 comments on commit 0baafc1

Please sign in to comment.