Skip to content

Fix error: Call to undefined function tpl_js() #20

Description

@kotadr

To solve the problem, you need to add the definition of the function to the main.php file:

--- main.php.orig 2020-11-03 23:10:29.000000000 +0200
+++ main.php 2023-02-14 08:43:39.558159311 +0200
@@ -12,6 +12,17 @@

+/**

    • Returns HTML string with script tag
  • */
    +function tpl_js($filename)
    +{
  • $filepath = DOKU_TPL . 'js' . DIRECTORY_SEPARATOR . $filename;
  • return "<script type="application/javascript" src="{$filepath}"></script>";
    +}

if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
header('X-UA-Compatible: IE=edge,chrome=1');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions