Ignore:
Timestamp:
03/21/10 12:48:36 (3 years ago)
Author:
nick_ramsay
Message:

[Trunk] Hotaru 1.1.3 [Run upgrade script]

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/content/plugins

  • trunk/content/plugins/sb_base/sb_base.php

    r1309 r1375  
    33 * name: SB Base 
    44 * description: Social Bookmarking base - provides "list" and "post" templates.  
    5  * version: 0.6 
     5 * version: 0.7 
    66 * folder: sb_base 
    77 * class: SbBase 
     
    4343        $sb_base_settings = $h->getSerializedSettings(); 
    4444        if (!isset($sb_base_settings['posts_per_page'])) { $sb_base_settings['posts_per_page'] = 10; } 
     45        if (!isset($sb_base_settings['rss_redirect'])) { $sb_base_settings['rss_redirect'] = ''; } 
    4546        if (!isset($sb_base_settings['archive'])) { $sb_base_settings['archive'] = "no_archive"; } 
    4647        $h->updateSetting('sb_base_settings', serialize($sb_base_settings)); 
     
    7071        if ($h->cage->get->keyExists('sort')) { 
    7172            $h->pageName = 'sort'; 
     73        } 
     74         
     75        // check if this is an RSS link forwarding to the source 
     76        if ($h->cage->get->keyExists('forward')) { 
     77            $post_id = $h->cage->get->testInt('forward'); 
     78            if ($post_id) { $post = $h->getPost($post_id); } 
     79            if (isset($post->post_orig_url)) {  
     80                header("Location:" . urldecode($post->post_orig_url)); 
     81                exit; 
     82            } 
    7283        } 
    7384         
Note: See TracChangeset for help on using the changeset viewer.