Changeset 26393


Ignore:
Timestamp:
06/18/10 21:17:43 (7 years ago)
Author:
bergie
Message:

Fix loading of infoboxes to topic front page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midcom/net.nemein.infobox/main.php

    r26306 r26393  
    6969        $data = array();
    7070        $path = substr($_MIDGARD['uri'], strlen($_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX)));
     71        if (!$path)
     72        {
     73            $path = '';
     74        }
    7175        $qb = net_nemein_infobox_infobox_dba::new_query_builder();
    7276        $qb->add_constraint('topic', '=', $_MIDCOM->get_context_data(MIDCOM_CONTEXT_CONTENTTOPIC)->id);
Note: See TracChangeset for help on using the changeset viewer.