PHP profile include fix

svn path=/trunk/boinc/; revision=8674
This commit is contained in:
David Anderson 2005-10-14 00:05:41 +00:00
parent f2cefff84a
commit 9dc3ca508e
3 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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);

View File

@ -1,8 +1,6 @@
<?php
require_once("../inc/forum.inc");
require_once("../inc/profile.inc");
require_once("../inc/text_transform.inc");
db_init();