Changeset 24966


Ignore:
Timestamp:
Oct 17, 2013, 9:38:06 PM (7 years ago)
Author:
rvelices
Message:

removed unused css rules, password recover form has a fieldset as all other forms, no exit if mail send fails

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r24952 r24966  
    540540  if (!empty($args['Bcc']))
    541541  {
    542     $headers.= 'Bcc: '.implode(',', $args['Bcc'])."\n";
    543 
    544542    foreach ($args['Bcc'] as $bcc)
    545543    {
     
    705703    }
    706704  }
    707  
    708   if(!$mail->send())
    709   {
    710     // TODO use standard error
    711     echo 'Message could not be sent.';
    712     echo 'Mailer Error: ' . $mail->ErrorInfo;
    713     exit;
    714   }
     705
     706  $ret = $mail->send();
     707  if(!$ret)
     708  {
     709    trigger_error( 'Mailer Error: ' . $mail->ErrorInfo, E_USER_WARNING);
     710  }
     711  return $ret;
    715712}
    716713
  • trunk/themes/default/template/password.tpl

    r18750 r24966  
    1212{if $action ne 'none'}
    1313<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&amp;key={$key}{/if}" method="post">
     14<fieldset>
     15        <legend>{'Forgot your password?'|translate}</legend>
    1416  <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
    1517
     
    4547    </label>
    4648  </p>
    47 
     49</fieldset>
    4850  <p class="bottomButtons"><input type="submit" name="submit" value="{'Submit'|@translate}"></p>
    4951  {/if}
  • trunk/themes/default/theme.css

    r24881 r24966  
    137137/* begin chronology/calendar elements*/
    138138.calendarViews {
    139         display: block;
    140139        float: right;
    141140        margin: 5px 5px 0 0;
     
    148147}
    149148
    150 .calItem A { border:0 }
     149.calItem A { text-decoration:none }
    151150
    152151.calendarCalBar {
    153152        margin: 10px;
    154         text-align: left;
    155153}
    156154
     
    581579
    582580.tagSelection {
    583         width: 99%;
    584         margin: 1em 0;
    585         padding: 0;
     581        margin: 1em 0 !important;
    586582}
    587583
    588584.tagSelection LI {
    589585        display:inline-block;
    590         width:150px!important;
     586        width: 150px;
    591587        overflow:hidden;
    592588        white-space: nowrap;
     
    760756}
    761757
    762 #lostPassword {
    763   padding: 1em;
    764 }
    765 
    766758#lostPassword p {
    767759  text-align: left;
Note: See TracChangeset for help on using the changeset viewer.