Dotclear

Changeset 607


Ignore:
Timestamp:
12/24/08 02:02:45 (14 years ago)
Author:
Moe
google:author:
appears
Message:

Contribute 1.0-alpha4.1 :

  • fixed bug with missing My Meta plugin
Location:
plugins/contribute
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/contribute/_define.php

    r605 r607  
    2626     /* Description*/                "Allow visitors to contribute to your blog", 
    2727     /* Author */                    "Moe (http://gniark.net/)", 
    28      /* Version */                   '1.0-alpha4', 
     28     /* Version */                   '1.0-alpha4.1', 
    2929     /* Permissions */               'admin' 
    3030); 
  • plugins/contribute/_public.php

    r605 r607  
    8888                    # default post 
    8989                    $default_post = $core->blog->settings->contribute_default_post; 
    90                     if (is_int($default_post) && $default_post > 0) 
     90                    if (is_int($default_post) && ($default_post > 0)) 
    9191                    { 
    9292                         # get default post 
     
    117117                         $post->mymeta = array(); 
    118118                          
    119                          if ($_ctx->contribute->mymeta->hasMeta()) 
     119                         if (($_ctx->contribute->mymeta !== false) 
     120                              && ($_ctx->contribute->mymeta->hasMeta())) 
    120121                         { 
    121122                              foreach ($_ctx->contribute->mymeta->getAll() as $k => $v) 
     
    309310                    if (!is_array($mymeta_values)) {$mymeta_values = array();} 
    310311                     
    311                     if (($_ctx->contribute->mymeta->hasMeta()) 
     312                    if (($_ctx->contribute->mymeta !== false) 
     313                         && ($_ctx->contribute->mymeta->hasMeta()) 
    312314                         && ($core->blog->settings->contribute_allow_mymeta === true)) 
    313315                    { 
     
    458460                               
    459461                              # My Meta 
    460                               if (($_ctx->contribute->mymeta->hasMeta()) 
     462                              if (($_ctx->contribute->mymeta !== false) 
     463                                   && ($_ctx->contribute->mymeta->hasMeta()) 
    461464                                   && ($core->blog->settings->contribute_allow_mymeta === true)) 
    462465                              { 
  • plugins/contribute/lib.contribute.php

    r605 r607  
    4242          $array = array(); 
    4343           
    44           if (!$mymeta->hasMeta()) 
     44          if (($mymeta === false) || (!$mymeta->hasMeta())) 
    4545          { 
    4646               return(staticRecord::newFromArray($array)); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map