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

Backward compatibility code for old plugins.

This commit is contained in:
Cameron
2017-10-11 11:39:18 -07:00
parent 4bff6f2be8
commit 2a1f3b0d61
3 changed files with 65 additions and 1 deletions

View File

@@ -5301,3 +5301,64 @@ class e_profanityFilter
return preg_replace("#a|e|i|o|u#i", "*" , $matches[0]);
}
}
/**
* Backwards Compatibility Class textparse
*/
class textparse {
function editparse($text, $mode = "off")
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
return e107::getParser()->toForm($text);
}
function tpa($text, $mode = '', $referrer = '', $highlight_search = false, $poster_id = '')
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
return e107::getParser()->toHTML($text, true, $mode, $poster_id);
}
function tpj($text)
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
return $text;
}
function formtpa($text, $mode = '')
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
return e107::getParser()->toDB($text);
}
function formtparev($text)
{
if(E107_DBG_DEPRECATED)
{
e107::getDebug()->logDeprecated();
}
return e107::getParser()->toForm($text);
}
}