mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Correction on the previous commit
This commit is contained in:
@@ -1971,17 +1971,21 @@ class e107plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($is_installed)
|
||||||
|
{
|
||||||
|
// simple bbcode
|
||||||
if(substr($adds,-3) == ".bb")
|
if(substr($adds,-3) == ".bb")
|
||||||
{
|
{
|
||||||
$bb_name = substr($adds, 0,-3); // remove the .bb
|
$bb_name = substr($adds, 0,-3); // remove the .bb
|
||||||
$bb_array[$bb_name] = "0"; // default userclass.
|
$bb_array[$bb_name] = "0"; // default userclass.
|
||||||
}
|
}
|
||||||
// bbcode class
|
// 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($adds, 0,-4); // remove the .php
|
||||||
$bb_name = substr($bb_name, 0, 3);
|
$bb_name = substr($bb_name, 3);
|
||||||
$bb_array[$bb_name] = "0"; // default userclass. TODO - instance and getPermissions() method
|
$bb_array[$bb_name] = "0"; // TODO - instance and getPermissions() method
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($is_installed && (substr($adds, -4) == "_sql"))
|
if ($is_installed && (substr($adds, -4) == "_sql"))
|
||||||
|
Reference in New Issue
Block a user