1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Bugtracker #3824 - show text between {...} if shortcode doesn't exist - let's see whether it causes different problems.

This commit is contained in:
e107steved 2007-03-05 21:24:47 +00:00
parent da460caa62
commit 9e9c3a1675

View File

@ -12,9 +12,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/shortcode_handler.php,v $
| $Revision: 1.4 $
| $Date: 2007-02-04 17:36:16 $
| $Author: mcfly_e107 $
| $Revision: 1.5 $
| $Date: 2007-03-05 21:24:47 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -133,15 +133,22 @@ class e_shortcode {
}
}
if(E107_DBG_SC){
echo " sc= ".str_replace(e_FILE."shortcode/","",$scFile)."<br />";
if (!isset($shortcode))
{
if(E107_DBG_BBSC) trigger_error("shortcode not found:{".$code."}", E_USER_ERROR);
return $matches[0];
}
if(E107_DBG_SC)
{
echo " sc= ".str_replace(e_FILE."shortcode/","",$scFile)."<br />";
}
if(E107_DBG_BBSC)
{
trigger_error("starting shortcode {".$code."}", E_USER_ERROR);
trigger_error("starting shortcode {".$code."}", E_USER_ERROR);
}
$ret = (isset($shortcode) ? eval($shortcode) : "");
$ret = eval($shortcode);
if($ret != '' || is_numeric($ret))
{