Changeset 17957

Show
Ignore:
Timestamp:
10/06/08 12:16:30 (2 months ago)
Author:
rambo
Message:

forward port the parent resolve part of r17956

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.routamc.gallery/photolink.php

    r14613 r17957  
    1919    { 
    2020        return parent::__construct($id); 
     21    } 
     22 
     23    function get_parent_guid_uncached() 
     24    { 
     25        if ($this->node != 0) 
     26        { 
     27            $parent = new midcom_db_topic($this->node); 
     28            return $parent->guid; 
     29        } 
     30        else 
     31        { 
     32            debug_push_class(__CLASS__, __FUNCTION__); 
     33            debug_add("No node defined for this photolink", MIDCOM_LOG_DEBUG); 
     34            debug_pop(); 
     35            return null; 
     36        } 
    2137    } 
    2238