1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Updated FAQs plugin to use the right shortcode methods.

This commit is contained in:
CaMer0n
2012-11-02 00:23:59 +00:00
parent 01dcf2a822
commit f2c7bad663
9 changed files with 60 additions and 41 deletions

View File

@@ -292,6 +292,12 @@ class e_parse_shortcode
$path = ($pluginName ? e_PLUGIN.$pluginName.'/shortcodes/batch/' : e_CORE.'shortcodes/batch/').$_class_fname.'.php';
$pathBC = e_PLUGIN.$pluginName.'/'.$_class_fname.'.php';
if(is_readable($pathBC)) // BC - required.
{
$path = $pathBC;
}
if (is_readable($path))
{
@@ -914,16 +920,20 @@ class e_shortcode
/**
* Set external array data to be used in the batch
* Use setVars() - preferred.
*
* @param array $eVars
* @return e_shortcode
*/
public function setParserVars($eVars)
public function setParserVars($eVars) //XXX will soon become private. Use setVars() instead.
{
$this->var = $eVars;
return $this;
}
/**
* Alias of setParserVars - Preferred use by Plugins.
*/
public function setVars($eVars) // Alias of setParserVars();
{
return $this->setParserVars($eVars);