From: Geoffrey T. D. <da...@us...> - 2002-01-13 04:46:47
|
Update of /cvsroot/phpwiki/phpwiki In directory usw-pr-cvs1:/tmp/cvs-serv13294 Modified Files: index.php Log Message: Search include_path when looking for themeinfo.php. Index: index.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/index.php,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -r1.60 -r1.61 *** index.php 2002/01/13 02:37:53 1.60 --- index.php 2002/01/13 04:46:43 1.61 *************** *** 444,450 **** //$theme="WikiTrek"; if (!empty($theme)) { ! if (file_exists("themes/$theme/themeinfo.php")) { ! include "themes/$theme/themeinfo.php"; ! } else { // FIXME: gettext doesn't work in index.php or themeinfo.php trigger_error(sprintf(("Unable to open file '%s' for reading"), --- 444,448 ---- //$theme="WikiTrek"; if (!empty($theme)) { ! if (! @include("themes/$theme/themeinfo.php")) { // FIXME: gettext doesn't work in index.php or themeinfo.php trigger_error(sprintf(("Unable to open file '%s' for reading"), |