From 13aff8aa7c67c3f562441fb347762b82d7e6110b Mon Sep 17 00:00:00 2001 From: kaldari Date: Fri, 20 Feb 2015 11:09:43 -0800 Subject: [PATCH] Adding sample code to TemplateParser::processTemplate() docs Also reverting punctuation that was accidently changed in change I28cd13d4d. Change-Id: I1283fbfbaf8cefbbc951599ee286d923b9dedf65 --- includes/TemplateParser.php | 10 ++++++++++ includes/templates/NoLocalSettings.mustache | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/includes/TemplateParser.php b/includes/TemplateParser.php index 41ae4a4a53..559ffb9ba2 100644 --- a/includes/TemplateParser.php +++ b/includes/TemplateParser.php @@ -166,6 +166,16 @@ class TemplateParser { /** * Returns HTML for a given template by calling the template function with the given args + * + * @code + * echo $templateParser->processTemplate( + * 'ExampleTemplate', + * array( + * 'username' => $user->getName(), + * 'message' => 'Hello!' + * ) + * ); + * @endcode * @param string $templateName The name of the template * @param mixed $args * @param array $scopes diff --git a/includes/templates/NoLocalSettings.mustache b/includes/templates/NoLocalSettings.mustache index 8a4616c455..545794919e 100644 --- a/includes/templates/NoLocalSettings.mustache +++ b/includes/templates/NoLocalSettings.mustache @@ -31,7 +31,7 @@

Please complete the installation and download LocalSettings.php.

{{/installerStarted}} {{^installerStarted}} -

Please set up the wiki first!

+

Please set up the wiki first.

{{/installerStarted}} {{/localSettingsExists}} -- 2.20.1