diff --git a/checkin_notes b/checkin_notes index 025f7626ac..4690897ac5 100755 --- a/checkin_notes +++ b/checkin_notes @@ -13115,3 +13115,16 @@ Janus 13 Oct 2005 user/ team_edit_form.php +David 13 Oct 2005 + - include text_transform.inc and db_forum.inc in profile.inc + (fixed bug in UOTD-review page) + - remove includes of forum.inc and text_transform.inc from view_profile.php + + NOTE: a PHP file (like other languages) should include ONLY + the .inc files for the functions that it itself uses + + html/ + inc/ + profile.inc + user/ + view_profile.php diff --git a/html/inc/profile.inc b/html/inc/profile.inc index 3175f2634e..a0c7822d02 100644 --- a/html/inc/profile.inc +++ b/html/inc/profile.inc @@ -7,6 +7,8 @@ require_once("../inc/sanitize_html.inc"); require_once("../inc/cache.inc"); require_once("../inc/user.inc"); require_once("../inc/translation.inc"); +require_once("../inc/text_transform.inc"); +require_once("../inc/db_forum.inc"); define('SMALL_IMG_WIDTH', 64); define('SMALL_IMG_HEIGHT', 64); diff --git a/html/user/view_profile.php b/html/user/view_profile.php index 583fffff15..553b361a75 100644 --- a/html/user/view_profile.php +++ b/html/user/view_profile.php @@ -1,8 +1,6 @@