Changeset 3537 for trunk

Show
Ignore:
Timestamp:
03/12/09 13:19:38 (9 months ago)
Author:
fumiakiy
Message:

Mergeing from the latest sockfish. "svn merge -r3527:3535 http://code.sixapart.com/svn/movabletype/branches/sockfish/ ."

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/MT/L10N/nl.pm

    r3531 r3537  
    17541754        'Couldn\'t get public key from url provided' => 'Kon geen publieke sleutel vinden via de opgegeven url', 
    17551755        'No public key could be found to validate registration.' => 'Er kon geen publieke sleutel gevonden worden om de registratie te valideren.', 
    1756         'TypePad signature verif\'n returned [_1] in [_2] seconds verifying [_3] with [_4]' => 'TypePad signatuur verificatie retourneerde [_1] in [_2] seconden bij het verifiᅵren van [_3] met [_4]', 
     1756        'TypePad signature verif\'n returned [_1] in [_2] seconds verifying [_3] with [_4]' => 'TypePad signatuur verificatie retourneerde [_1] in [_2] seconden bij het verifiëren van [_3] met [_4]', 
    17571757        'The TypePad signature is out of date ([_1] seconds old). Ensure that your server\'s clock is correct' => 'De TypePad signatuur is vervallen ([_1] seconden oud).  Kijk na of de klok van uw server juist staat.', 
    17581758 
     
    26492649        'Require E-mail Address for Comments via TypePad' => 'E-mail adres vereisen voor reacties via TypePad', 
    26502650        'If enabled, visitors must allow their TypePad account to share e-mail address when commenting.' => 'Indien ingeschakeld, moeten bezoekers die met hun TypePad account zijn aangemeld hun e-mail adres met u delen als ze een reactie willen achterlaten.', 
    2651         'One or more Perl module may be missing to use this authentication method.' => 'Mogelijk ontbreken ᅵᅵn of meer Perl modules om deze authenticatiemethode te kunnen gebruiken.', 
     2651        'One or more Perl module may be missing to use this authentication method.' => 'Mogelijk ontbreken één of meer Perl modules om deze authenticatiemethode te kunnen gebruiken.', 
    26522652        'Setup TypePad' => 'TypePad instellen', 
    26532653        'OpenID providers disabled' => 'OpenID providers uitgeschakeld', 
  • trunk/php/lib/block.mtifcommenterregistrationallowed.php

    r3531 r3537  
    77 
    88function smarty_block_mtifcommenterregistrationallowed($args, $content, &$ctx, &$repeat) { 
    9     $registration = $ctx->mt->config('CommenterRegistration') 
     9    $registration = $ctx->mt->config('commenterregistration'); 
    1010    $blog = $ctx->stash('blog'); 
    11     return $registration['Allow'] && ($blog && $blog['blog_allow_commenter_regist']) 
     11    $allow = $registration['allow'] && ($blog && $blog['blog_allow_commenter_regist']); 
     12    if (!isset($content)) { 
     13        return $ctx->_hdlr_if($args, $content, $ctx, $repeat, $allow); 
     14    } else { 
     15        return $ctx->_hdlr_if($args, $content, $ctx, $repeat); 
     16    } 
    1217} 
    1318?> 
  • trunk/php/mt.php

    r3531 r3537  
    202202        $cfg = array(); 
    203203        $type_array = array('pluginpath', 'alttemplate', 'outboundtrackbackdomains', 'memcachedservers'); 
     204        $type_hash  = array('commenterregistration'); 
    204205        if ($fp = file($file)) { 
    205206            foreach ($fp as $line) { 
     
    212213                        if (in_array($key, $type_array)) { 
    213214                            $cfg[$key][] = $value; 
     215                        } 
     216                        elseif (in_array($key, $type_hash)) { 
     217                            $hash = preg_split('/\=/', $value, 2); 
     218                            $cfg[$key][strtolower(trim($hash[0]))] = trim($hash[1]); 
    214219                        } else { 
    215220                            $cfg[$key] = $value; 
     
    385390        isset($cfg['usersessioncookietimeout']) or 
    386391            $cfg['usersessioncookietimeout'] = 60*60*4; 
     392        isset($cfg['commenterregistration']) or 
     393            $cfg['commenterregistration'] = array('allow' => 1 ); 
    387394    } 
    388395