Skip to content
Snippets Groups Projects
Commit 1ff877d4 authored by xamgore's avatar xamgore
Browse files

Markdown is not a global variable of twig

It will be loaded _only_ on the sign in page!
parent 042c7cc5
Branches
No related merge requests found
...@@ -37,7 +37,8 @@ class Controller_Authentication extends Controller { ...@@ -37,7 +37,8 @@ class Controller_Authentication extends Controller {
$type = $this->request->param('type'); $type = $this->request->param('type');
$type = empty($type)? 'in': $type; $type = empty($type)? 'in': $type;
$twig = Twig::factory('sign/'.$type); $twig = Twig::factory('sign/'.$type);
$twig->Markdown = new Parsedown();
$twig->Updates = Model_System::getChangeLog(); $twig->Updates = Model_System::getChangeLog();
$this->response->body($twig); $this->response->body($twig);
} }
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
* @property $Rus RusLang * @property $Rus RusLang
* @property $Arr Arr * @property $Arr Arr
* @property $Inflector Inflector * @property $Inflector Inflector
* @property $Markdown Parsedown
* @property $System array[] * @property $System array[]
*/ */
class Twig extends Kohana_Twig class Twig extends Kohana_Twig
...@@ -27,7 +26,6 @@ class Twig extends Kohana_Twig ...@@ -27,7 +26,6 @@ class Twig extends Kohana_Twig
'Rus' => new RusLang, 'Rus' => new RusLang,
'Arr' => new Arr, 'Arr' => new Arr,
'Inflector' => new Inflector, 'Inflector' => new Inflector,
'Markdown' => new Parsedown(),
'System' => array('Title' => ASSEMBLY_SYSTEM_NAME, 'Version' => ASSEMBLY_VERSION), 'System' => array('Title' => ASSEMBLY_SYSTEM_NAME, 'Version' => ASSEMBLY_VERSION),
]); ]);
return $twig; return $twig;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment