From d28e532a7bcc509875c0f86ef907f8ca8b89be36 Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Thu, 4 Dec 2003 19:33:30 +0000 Subject: [PATCH] Bugfix: Under certain PhpWiki installations (such as the PhpWiki at SF), the user was unable to select a theme other than the server's default. (Use the more robust Theme::findFile instead of PHP's file_exists function to detect installed themes). git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2889 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiUser.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/WikiUser.php b/lib/WikiUser.php index 4b157ca82..0ffc0ba42 100644 --- a/lib/WikiUser.php +++ b/lib/WikiUser.php @@ -1,5 +1,5 @@ _themefile($value))) + if (findFile($this->_themefile($value), true)) return $value; return $this->default_value; } @@ -656,6 +656,10 @@ class UserPreferences { } // $Log: not supported by cvs2svn $ +// Revision 1.42 2003/11/30 18:18:13 carstenklapp +// Minor code optimization: use include_once instead of require_once +// inside functions that might not always called. +// // Revision 1.41 2003/11/21 21:32:39 carstenklapp // Bugfix: When DEFAULT_LANGUAGE was not 'en', a user's language prefs // would revert to 'en' when the default was selected -- 2.45.0