Changeset 13379

Show
Ignore:
Timestamp:
11/12/07 07:59:40 (1 year ago)
Author:
rambo
Message:

make next/prev resolve configurable (very heavy in large streams, TODO: investigate why)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/MidCOM_2_8/org.routamc.photostream/config/config.inc

    r12802 r13379  
    2121// Stick to the context in photo navigation (e.g. show the next and previous only from the selected user or tag group) 
    2222'navigate_with_context' => true, 
     23'load_next_prev' => false, 
  • branches/MidCOM_2_8/org.routamc.photostream/handler/view.php

    r12802 r13379  
    145145         
    146146        // Get the next and previous 
    147         $data['previous_guid'] = $this->_get_surrounding_photo('<', $args, $data['photo']); 
    148         $data['next_guid'] = $this->_get_surrounding_photo('>', $args, $data['photo']); 
     147        $data['previous_guid'] = false; 
     148        $data['next_guid'] = false; 
     149        if ($this->_config->get('load_next_prev')) 
     150        { 
     151            $data['previous_guid'] = $this->_get_surrounding_photo('<', $args, $data['photo']); 
     152            $data['next_guid'] = $this->_get_surrounding_photo('>', $args, $data['photo']); 
     153        } 
    149154         
    150155        // Create the link suffix