plugins/Nuggie.php
changeset 2 4e7762863437
parent 0 a09fb41e48d5
child 3 a050ff3d4509
equal deleted inserted replaced
1:6e76ca311f2d 2:4e7762863437
    39     list($page_id, $namespace) = RenderMan::strToPageId($paths->get_pageid_from_url());
    39     list($page_id, $namespace) = RenderMan::strToPageId($paths->get_pageid_from_url());
    40     
    40     
    41     if ( $page_id == "Preferences" && $namespace == "Special" )
    41     if ( $page_id == "Preferences" && $namespace == "Special" )
    42     {
    42     {
    43       require( ENANO_ROOT . "/plugins/nuggie/usercp.php" );
    43       require( ENANO_ROOT . "/plugins/nuggie/usercp.php" );
       
    44     }
       
    45     else if ( $page_id == "Search" && $namespace == "Special" )
       
    46     {
       
    47       require( ENANO_ROOT . "/plugins/nuggie/search.php" );
    44     }
    48     }
    45   ');
    49   ');
    46 
    50 
    47 $plugins->attachHook('acl_rule_init', 'nuggie_namespace_setup();');
    51 $plugins->attachHook('acl_rule_init', 'nuggie_namespace_setup();');
    48 
    52