From d5fa68b46a0e7db0d7280a0a64a3d7973ce3aacd Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 5 Apr 2019 09:11:54 +0100 Subject: [PATCH] Simplify PageTemplate We no longer need to mess around with the currentTiddler variable to be able to access to the "name" field of the current language --- core/ui/PageTemplate.tid | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/ui/PageTemplate.tid b/core/ui/PageTemplate.tid index 6ec711950..0dafc9666 100644 --- a/core/ui/PageTemplate.tid +++ b/core/ui/PageTemplate.tid @@ -15,11 +15,7 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ <$set name="storyviewTitle" value={{$:/view}}> -<$set name="currentTiddler" value={{$:/language}}> - -<$set name="languageTitle" value={{!!name}}> - -<$set name="currentTiddler" value=""> +<$set name="languageTitle" value={{{ [{$:/language}get[name]] }}}>
>> @@ -50,7 +46,3 @@ tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$ - - - -