return true;
}
- function onAutoload($cls)
- {
- $dir = dirname(__FILE__);
-
- switch ($cls)
- {
- case 'OpenxadminpanelAction':
- require_once $dir . '/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
- return false;
- default:
- return true;
- }
- }
-
function onEndAdminPanelNav($menu) {
if (AdminPanelAction::canAdmin('openx')) {
- // TRANS: Menu item title/tooltip
- $menu_title = _m('OpenX configuration');
+ // TRANS: Menu item title.
+ $menu_title = _m('OpenX configuration.');
// TRANS: Menu item for site administration
$menu->out->menuItem(common_local_url('openxadminpanel'), _m('OpenX'),
$menu_title, $action_name == 'openxadminpanel', 'nav_openx_admin_panel');
*
* @return boolean hook value
*/
- function onPluginVersion(&$versions)
+ function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OpenX',
- 'version' => STATUSNET_VERSION,
+ 'version' => GNUSOCIAL_VERSION,
'author' => 'Evan Prodromou',
- 'homepage' => 'http://status.net/wiki/Plugin:OpenX',
+ 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/OpenX',
'rawdescription' =>
// TRANS: Plugin description.
_m('Plugin for <a href="http://www.openx.org/">OpenX Ad Server</a>.'));