plugins/SpecialUserPrefs.php
changeset 228 b0a4d179be85
parent 224 6a4573507ff8
child 286 b2f985e4cef3
--- a/plugins/SpecialUserPrefs.php	Sat Oct 20 21:59:27 2007 -0400
+++ b/plugins/SpecialUserPrefs.php	Sat Nov 03 07:40:54 2007 -0400
@@ -212,6 +212,8 @@
           
           if ( strlen($newpass) > 0 )
           {
+            if ( defined('ENANO_DEMO_MODE') )
+              $errors .= '<div class="error-box" style="margin: 0 0 10px 0;">You can\'t change your password in demo mode.</div>';
             // Perform checks
             if ( strlen($newpass) < 6 )
               $errors .= '<div class="error-box" style="margin: 0 0 10px 0;">Password must be at least 6 characters. You hacked my script, darn you!</div>';