Changeset - 4b184ba78a15
[Not reviewed]
0 1 0
Chel Sea (chain) - 5 years ago 2020-11-17 18:23:44
chain@rpgfiction.net
use default instead of global templates and add template group
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
inc/plugins/lexicon.php
Show inline comments
 
@@ -94,6 +94,13 @@ function lexicon_activate()
 
{
 
	global $db;
 
	
 

	
 
    $ins = array(
 
	"prefix"	=>	"lexicon",
 
	"title"         =>	"Lexicon",
 
    );
 
    $db->insert_query("templategroups", $ins);
 

	
 
    $lexicon = [
 
        'title'        => 'lexicon',
 
        'template'    => $db->escape_string('<html>
 
@@ -227,7 +234,8 @@ function lexicon_activate()
 
function lexicon_deactivate()
 
{
 
	global $db;
 
	$db->delete_query("templates", "title LIKE '%lexicon%'");
 
	$db->delete_query("templates", "title LIKE 'lexicon_%' AND sid='-2'");
 
	$db->delete_query("templategroups", "prefix = 'lexicon'");
 
}
 

	
 
// ACP Action Handler
0 comments (0 inline, 0 general)