mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Shortcode parser: major changes (could break stuff), e_shortcode renamed to e_parse_shortcode, abstract e_shortcode class added, functions moved to e_parse_shortcode, more to do, getScObject added to e107 class, work in progress
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
@@ -447,24 +447,6 @@ class e_parse
|
||||
return utf8_substr($str, $start, $length);
|
||||
}
|
||||
|
||||
|
||||
// Initialise the shortcode handler - has to be done when $prefs valid, so can't be done in constructor ATM
|
||||
/*
|
||||
function sch_load($noCore = FALSE)
|
||||
{
|
||||
if (!is_object($this->e_sc))
|
||||
{
|
||||
require_once(e_HANDLER."shortcode_handler.php");
|
||||
$this->e_sc = new e_shortcode;
|
||||
if(!$noCore)
|
||||
{
|
||||
$this->e_sc->loadCoreShortcodes();
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Converts the supplied text (presumed to be from user input) to a format suitable for storing in a database table.
|
||||
*
|
||||
|
Reference in New Issue
Block a user