Вход Регистрация
Файл: library/XenForo/Route/Prefix/InlineMod.php
Строк: 26
<?php

class XenForo_Route_Prefix_InlineMod implements XenForo_Route_Interface
{
    
/**
     * Match a specific route for an already matched prefix.
     *
     * @see XenForo_Route_Interface::match()
     */
    
public function match($routePathZend_Controller_Request_Http $requestXenForo_Router $router)
    {
        
$parts explode('/'$routePath2);

        
$controllerPart str_replace(array('-''/'), ' 'strtolower($parts[0]));
        
$controllerPart str_replace(' '''ucwords($controllerPart));

        
$action = (isset($parts[1]) ? $parts[1] : '');

        return 
$router->getRouteMatch('XenForo_ControllerPublic_InlineMod_' $controllerPart$action'forums');
    }
}
Онлайн: 1
Реклама