Show
Ignore:
Timestamp:
09/04/08 21:29:29 (4 months ago)
Author:
MattRead
Message:

plugin:plugin_directory update template and rewrite rules

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/plugin_directory/trunk/plugin_directory.plugin.php

    r891 r894  
    8787        // put together our rule 
    8888        $rule['name'] = 'display_plugins'; 
    89         $rule['parse_regex'] = '%^explore/plugins/?$%'; 
    90         $rule['build_str'] = 'explore/plugins/'; 
     89        $rule['parse_regex'] = '%^explore/plugins(?:/page/(?P<page>\d+))?/?$%'; 
     90        $rule['build_str'] = 'explore/plugins(/page/{$page})'; 
    9191        $rule['handler'] = 'UserThemeHandler'; 
    9292        $rule['action'] = 'display_plugins'; 
     
    9696        // add our rule to the stack 
    9797        $rules[] = $rule; 
    98  
     98         
    9999        // and pass it along 
    100100        return $rules; 
    101101 
    102102    } 
    103  
     103     
    104104    /** 
    105105     * @ todo make uoe own template for these