Dotclear


Ignore:
Timestamp:
06/09/10 03:12:52 (13 years ago)
Author:
JcDenis
Message:

pollsFactory 1.3

  • Switched to DC 2.2
  • Fixed minor bugs
Location:
plugins/pollsFactory/inc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/pollsFactory/inc/class.pollsfactory.chart.php

    r2240 r2338  
    3030          # Cache directory 
    3131          $this->cache_dir = path::real(DC_TPL_CACHE); 
    32           $use_cache = (boolean) $core->blog->settings->pollsFactory_graph_cache; 
     32          $use_cache = (boolean) $core->blog->settings->pollsFactory->pollsFactory_graph_cache; 
    3333          if (!$use_cache || !is_dir($this->cache_dir) || !is_writable($this->cache_dir)) { 
    3434               $this->cache_dir = null; 
    3535          } 
    3636          # Image properties 
    37           $this->prop = @unserialize($core->blog->settings->pollsFactory_graph_options); 
     37          $this->prop = @unserialize($core->blog->settings->pollsFactory->pollsFactory_graph_options); 
    3838          if (!is_array($this->prop) || empty($this->prop)){ 
    3939               $this->prop = self::defaultOptions(); 
     
    4242          } 
    4343          # Last update 
    44           $this->trigger = (integer) $core->blog->settings->pollsFactory_graph_trigger; 
     44          $this->trigger = (integer) $core->blog->settings->pollsFactory->pollsFactory_graph_trigger; 
    4545     } 
    4646 
  • plugins/pollsFactory/inc/class.pollsfactory.php

    r2146 r2338  
    3434          $chk = false; 
    3535          $poll_id = (integer) $poll_id; 
    36           $ident = (integer) $this->core->blog->settings->pollsFactory_people_ident; 
     36          $ident = (integer) $this->core->blog->settings->pollsFactory->pollsFactory_people_ident; 
    3737 
    3838          # Cookie 
     
    104104 
    105105          # Cookie 
    106           if($this->core->blog->settings->pollsFactory_people_ident < 2) 
     106          if($this->core->blog->settings->pollsFactory->pollsFactory_people_ident < 2) 
    107107          { 
    108108               $list = isset($_COOKIE['pollsFactoryVotes']) ? 
     
    113113          } 
    114114          # Ident 
    115           $ip = $this->core->blog->settings->pollsFactory_people_ident > 0 ? 
     115          $ip = $this->core->blog->settings->pollsFactory->pollsFactory_people_ident > 0 ? 
    116116               $this->con->escape(http::realIP()) : 
    117117               substr(http::browserUID(DC_MASTER_KEY),0,24); 
  • plugins/pollsFactory/inc/index.polls.php

    r2146 r2338  
    288288if ($core->auth->check('publish,contentadmin',$core->blog->id)) 
    289289{ 
    290      $combo_action[__('publish')] = 'publish'; 
    291      $combo_action[__('unpublish')] = 'unpublish'; 
    292      $combo_action[__('schedule')] = 'schedule'; 
    293      $combo_action[__('mark as pending')] = 'pending'; 
    294      $combo_action[__('open voting')] = 'open'; 
    295      $combo_action[__('close voting')] = 'close'; 
    296 } 
    297 $combo_action[__('mark as selected')] = 'selected'; 
    298 $combo_action[__('mark as unselected')] = 'unselected'; 
     290     $combo_action[__('Status')][__('Publish')] = 'publish'; 
     291     $combo_action[__('Status')][__('Unpublish')] = 'unpublish'; 
     292     $combo_action[__('Status')][__('Schedule')] = 'schedule'; 
     293     $combo_action[__('Status')][__('Mark as pending')] = 'pending'; 
     294     $combo_action[__('Votes')][__('Open voting')] = 'open'; 
     295     $combo_action[__('Votes')][__('Close voting')] = 'close'; 
     296} 
     297$combo_action[__('Mark')][__('Mark as selected')] = 'selected'; 
     298$combo_action[__('Mark')][__('Mark as unselected')] = 'unselected'; 
    299299if ($core->auth->check('delete,contentadmin',$core->blog->id)) 
    300300{ 
    301      $combo_action[__('delete')] = 'delete'; 
     301     $combo_action[__('Delete')][__('Delete')] = 'delete'; 
    302302} 
    303303 
  • plugins/pollsFactory/inc/index.setting.php

    r2240 r2338  
    3232if ($default_tab == 'setting' && $action == 'savesetting') 
    3333{ 
    34      try { 
    35           $s->setNameSpace('pollsFactory'); 
     34     try 
     35     { 
    3636          $s->put('pollsFactory_active',!empty($_POST['active'])); 
    3737          $s->put('pollsFactory_people_ident', (integer) $_POST['people_ident']); 
     
    5353          } 
    5454 
    55           $s->setNameSpace('system'); 
    5655          $core->blog->triggerBlog(); 
    5756 
    5857          http::redirect($p_url.'&tab=setting&msg='.$action.'&section='.$section); 
    5958     } 
    60      catch (Exception $e) { 
     59     catch (Exception $e) 
     60     { 
    6161          $core->error->add($e->getMessage()); 
    6262     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map