Changeset 30

Show
Ignore:
Timestamp:
2007-11-23 21:05:23 (4 years ago)
Author:
hannes
Message:

styles: 'board default' isn't the same as 'default.css'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/classes/pages/Editmember.php

    r20 r30  
    345345                        $form->addRawTableRow(Array($LANG['Signature'] . ':', '<td><textarea name="signature">' . str_replace(Array('<br>', '<br />'), Array('', ''), $m->getSignature()) . '</textarea></td>')); 
    346346                        // board style 
    347                         $_col2 = '<td><select name="boardstyle">'; 
     347                        $_col2 = '<td><select name="boardstyle"><option value="">' . $LANG['default'] . '</option>'; 
    348348                        // open styles directory for reading 
    349349                        if ($handle = @opendir('../includes/styles')) { 
  • trunk/admin/classes/pages/Settings.php

    r22 r30  
    7979                    fwrite($file, "\$SETTINGS['timezone'] = '" . $newtimezone . "'; // time offset compared to UTC\n"); 
    8080                    fwrite($file, "\$SETTINGS['encoding'] = '" . $newencoding . "'; // character encoding\n"); 
    81                     fwrite($file, "\$SETTINGS['defaultstyle'] = '" . $newdefaultstyle . "'; // default stylesheet of the board\n"); 
     81                    fwrite($file, "\$SETTINGS['defaultstyle'] = '" . $newdefaultstyle . ".css'; // default stylesheet of the board\n"); 
    8282                    fwrite($file, "\$SETTINGS['expire'] = " . $newexpire . "; // cookie expiration in days\n"); 
    8383                    fwrite($file, "\$SETTINGS['debug'] = " . $newdebug . "; // debug mode (0: off, 1: on, 2: admins only)\n"); 
     
    236236                            $file = substr($file, 0, strlen($file) - 4); 
    237237                            $_col2 .= '<option value="' . $file . '"'; 
    238                             if ($file == $SETTINGS['defaultstyle']) { 
     238                            if ($file == substr($SETTINGS['defaultstyle'], 0, strlen($SETTINGS['defaultstyle'] - 4))) { 
    239239                                $_col2 .= ' selected="selected"'; 
    240240                            } 
  • trunk/classes/pages/Userpanel.php

    r20 r30  
    450450                        $form->addRawTableRow(Array($LANG['Signature'] . ':', '<td><textarea name="signature">' . str_replace(Array('<br>', '<br />'), Array('', ''), $m->getSignature()) . '</textarea></td>')); 
    451451                        // board style 
    452                         $_col2 = '<td><select name="boardstyle">'; 
     452                        $_col2 = '<td><select name="boardstyle"><option value="">' . $LANG['default'] . '</option>'; 
    453453                        // open styles directory for reading 
    454454                        if ($handle = @opendir('includes/styles')) { 
  • trunk/includes/config/settings.tmpl

    r28 r30  
    3737$SETTINGS['timezone'] = '+0:00'; // time offset compared to UTC 
    3838$SETTINGS['encoding'] = 'UTF-8'; // character encoding 
    39 $SETTINGS['defaultstyle'] = 'default'; // default stylesheet of the board 
     39$SETTINGS['defaultstyle'] = 'default.css'; // default stylesheet of the board 
    4040$SETTINGS['expire'] = 30; // cookie expiration in days 
    4141$SETTINGS['debug'] = 2; // debug mode (0: off, 1: on, 2: admins only