1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Correction on the previous commit

This commit is contained in:
secretr 2011-12-10 19:34:08 +00:00
parent 7f59bc0a9c
commit 5e7d939456

View File

@ -1968,21 +1968,25 @@ class e107plugin
else
{
$sc_array[$sc_name] = e_UC_NOBODY; // register shortcode, but disable it
}
}
}
if($is_installed)
{
// simple bbcode
if(substr($adds,-3) == ".bb")
{
$bb_name = substr($adds, 0,-3); // remove the .bb
$bb_array[$bb_name] = "0"; // default userclass.
}
// bbcode class
elseif(substr($adds, 0, 3) == "bb_" && substr($adds, -3) == ".bb")
elseif(substr($adds, 0, 3) == "bb_" && substr($adds, -4) == ".php")
{
$bb_name = substr($adds, 0,-3); // remove the .bb
$bb_name = substr($bb_name, 0, 3);
$bb_array[$bb_name] = "0"; // default userclass. TODO - instance and getPermissions() method
$bb_name = substr($adds, 0,-4); // remove the .php
$bb_name = substr($bb_name, 3);
$bb_array[$bb_name] = "0"; // TODO - instance and getPermissions() method
}
}
if ($is_installed && (substr($adds, -4) == "_sql"))
{