Jump to content

Edit History

spiros

spiros

Thank you so much. That gave me:

Quote

Notice: 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;
}

 

spiros

spiros

Thank you so much. That gave me:

Quote

Notice: 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:

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;
}

 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.