diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-02 00:34:09 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-02 00:34:09 +0000 |
commit | 0f4a9e4823d6aa92c3974c33f560a4897140dfbd (patch) | |
tree | 14fe5d32d8bfd510e450dd51195ee300edcc7ec1 /lib/ui.lib.php | |
parent | 6a335845ccd2650e2444080a5faa5dc6151ab993 (diff) | |
download | ampache-0f4a9e4823d6aa92c3974c33f560a4897140dfbd.tar.gz ampache-0f4a9e4823d6aa92c3974c33f560a4897140dfbd.tar.bz2 ampache-0f4a9e4823d6aa92c3974c33f560a4897140dfbd.zip |
corrected some display problems with the capatcha and agreements enabled on user registration
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 2f50256b..815b995a 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -734,7 +734,9 @@ mail (conf('mail_from'), "New user registration at $title", $admin_body, $from); */ function show_registration_agreement() { - $filename = conf('prefix') . '/config/registration_agreement.php'; + $filename = Config::get('prefix') . '/config/registration_agreement.php'; + + if (!file_exists($filename)) { return false; } /* Check for existance */ $fp = fopen($filename,'r'); |