Changeset 1890


Ignore:
Timestamp:
12/23/09 11:43:46 (14 years ago)
Author:
eduardoalex
Message:

Ticket #731 - Correcao da visualizacao do textRico - textoSimples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/hook_settings.inc.php

    r1873 r1890  
    2020        \**************************************************************************/ 
    2121include_once("fckeditor.php"); 
    22 $type = $_GET['type']; // FIX ME 
     22$type = isset($_GET['type']) ? $_GET['type']:$GLOBALS['type']; // FIX ME 
    2323 
    2424//if ($type == 'user' || $type == ''){ 
     
    427427 
    428428function setDefaultTypeSignature() { 
    429         getTypeSignature().options[0].value = '".$GLOBALS['phpgw']->preferences->default['expressoMail']['type_signature']."d'; 
    430         if(getTypeSignature().value.indexOf('html')!=-1){ 
    431            changeType(getTypeSignature().value); 
    432     } 
     429        if(getTypeSignature()){ 
     430                getTypeSignature().options[0].value = '".$GLOBALS['phpgw']->preferences->default['expressoMail']['type_signature']."d'; 
     431                if(getTypeSignature().value.indexOf('html')!=-1){ 
     432                   changeType(getTypeSignature().value); 
     433            } 
     434        }else{ 
     435                 changeType('".$GLOBALS['phpgw']->preferences->forced['expressoMail']['type_signature']."'); 
     436        } 
    433437} 
    434438 
Note: See TracChangeset for help on using the changeset viewer.