1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02: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). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/shortcode_handler.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/shortcode_handler.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2007-02-04 17:36:16 $ | $Date: 2007-03-05 21:24:47 $
| $Author: mcfly_e107 $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -133,15 +133,22 @@ class e_shortcode {
} }
} }
if(E107_DBG_SC){ if (!isset($shortcode))
echo " sc= ".str_replace(e_FILE."shortcode/","",$scFile)."<br />"; {
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) 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)) if($ret != '' || is_numeric($ret))
{ {