plugins/Nuggie.php
changeset 3 a050ff3d4509
parent 2 4e7762863437
child 7 cd46e29ae699
equal deleted inserted replaced
2:4e7762863437 3:a050ff3d4509
    38 $plugins->attachHook('base_classes_initted', '
    38 $plugins->attachHook('base_classes_initted', '
    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       $template->add_header("<link rel=\"stylesheet\" type=\"text/css\" href=\"' . scriptPath . '/plugins/nuggie/client/usercp.css\" />");
    43       require( ENANO_ROOT . "/plugins/nuggie/usercp.php" );
    44       require( ENANO_ROOT . "/plugins/nuggie/usercp.php" );
    44     }
    45     }
    45     else if ( $page_id == "Search" && $namespace == "Special" )
    46     else if ( $page_id == "Search" && $namespace == "Special" )
    46     {
    47     {
    47       require( ENANO_ROOT . "/plugins/nuggie/search.php" );
    48       require( ENANO_ROOT . "/plugins/nuggie/search.php" );