Commit ece34d7c authored by Chenu Denis's avatar Chenu Denis

[dev] Quickest alias solution

parent e56771e5
......@@ -5,7 +5,7 @@
* @author Denis Chenu <denis@sondages.pro>
* @copyright 2015-2018 Denis Chenu <http://www.sondages.pro>
* @license GPL v3
* @version 0.2.0
* @version 0.2.1
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -26,16 +26,7 @@ class toolsDomDocument extends PluginBase
* Add function to be used in beforeQuestionRender event
*/
public function init()
{
$this->subscribe('afterPluginLoad'); /* Seems the quickest way for an helper for other plugin */
}
/**
* Set the alias to get the file
*/
public function afterPluginLoad()
{
Yii::setPathOfAlias('toolsDomDocument', dirname(__FILE__)."/libraries/SmartDOMDocument/");
}
}
Markdown is supported
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