Skip to content

Problem with custom function "URL" #131

Closed
@GAngZta85

Description

@GAngZta85

Since 3.1.28 the smarty autoloader tries to load the class Smarty_Internal_Compile_URL.
This will not work because URL is a custom function.

In 3.1.27 it is all ok.

My custom function (plugins/function.URL.php):

function smarty_function_URL($params, $template) {
        $sPath = ifsetter($params['path'], '');
        return MSE()->Language()->getUrl(['sPath' => $sPath]);
}

Template example: {URL path=$i1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions