This repository was archived by the owner on Sep 17, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
administrator/components/com_templates/Model Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -366,14 +366,14 @@ public function getCoreFile($file, $client_id)
366366 $ subFolder = $ explodeArray ['3 ' ];
367367 $ fileName = $ this ->getSafeName ($ fileName );
368368
369- // The old scheme, if a view has a tmpl folder
370- $ oldHtmlPath = Path::clean ($ componentPath . $ folder . '/views / ' . $ subFolder . '/tmpl / ' );
369+ // The new scheme, if a view has a tmpl folder
370+ $ newHtmlPath = Path::clean ($ componentPath . $ folder . '/tmpl / ' . $ subFolder . '/ ' );
371371
372- if (!$ coreFile = Path::find ($ oldHtmlPath , $ fileName ))
372+ if (!$ coreFile = Path::find ($ newHtmlPath , $ fileName ))
373373 {
374- // The new scheme, the views are directly in the component/tmpl folder
375- $ newHtmlPath = Path::clean ($ componentPath . $ folder . '/tmpl / ' . $ subFolder . '/ ' );
376- $ coreFile = Path::find ($ newHtmlPath , $ fileName );
374+ // The old scheme, the views are directly in the component/tmpl folder
375+ $ oldHtmlPath = Path::clean ($ componentPath . $ folder . '/views / ' . $ subFolder . '/tmpl / ' );
376+ $ coreFile = Path::find ($ oldHtmlPath , $ fileName );
377377
378378 return $ coreFile ;
379379 }
You can’t perform that action at this time.
0 commit comments