Work in progress: partway through making profile_detail DB-accessible
This commit is contained in:
@@ -62,6 +62,9 @@ class ExtendedProfilePlugin extends Plugin
|
||||
case 'profiledetailsettingsaction':
|
||||
require_once dirname(__FILE__) . '/' . $lower . '.php';
|
||||
return false;
|
||||
case 'profile_detail':
|
||||
require_once dirname(__FILE__) . '/' . ucfirst($lower) . '.php';
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
@@ -87,6 +90,16 @@ class ExtendedProfilePlugin extends Plugin
|
||||
return true;
|
||||
}
|
||||
|
||||
function onCheckSchema()
|
||||
{
|
||||
$schema = Schema::get();
|
||||
$schema->ensureTable('profile_detail', Profile_detail::schemaDef());
|
||||
|
||||
// @hack until key definition support is merged
|
||||
Profile_detail::fixIndexes($schema);
|
||||
return true;
|
||||
}
|
||||
|
||||
function onEndAccountSettingsProfileMenuItem($widget, $menu)
|
||||
{
|
||||
// TRANS: Link title attribute in user account settings menu.
|
||||
|
Reference in New Issue
Block a user