Thank you so much. That gave me:
QuoteNotice: Use of undefined constant - assumed '' in... on line 234
Notice: Undefined variable: dbw in... on line 234
Fatal error: Call to undefined function insert() in... on line 234
Line 234 is where the snippet provided starts ($dbw - >insert...):
function Lookup_addLookup ($url, $name, $group)
{
$dbw = wfGetDB(DB_MASTER);
$dbw->insert( 'lookups', [
'lu_name' => $name,
'lu_url' => $url,
'lu_group' => $group,
'lu_order' => 1,
'lu_group_order' => $groupOrder
] );
Lookup_reOrderGroups();
return true;
}