← Back to team overview

mahara-contributors team mailing list archive

[Bug 1888743] Re: clean up references to old menu structure

 

** Tags removed: code-cleanup
** Tags added: refactoring

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1888743

Title:
  clean up references to old menu structure

Status in Mahara:
  New

Bug description:
  Currently we still have some references to the old menu structure within Mahara.
  'myportfolio' and 'content' should both be updated to 'create'.

  Change: define(MENUITEM', 'myportfolio');
  To: define('MENUITEM', 'create');

  In the following files:
  relatedtags.php
  artefact/annotation/edit.php
  artefact/comment/edit.php
  artefact/peerassessment/edit.php

  In artefact/internal/socialprofile.php:
  Change: define('MENUITEM', 'content/profile');
  To: define('MENUITEM', 'create/files');

  In htdocs/lib/web.php:
  Change (ln 1476 in a comment): in_array(MENUITEM, array('myportfolio/view'))),
  To: in_array(MENUITEM, array('create/view'))),

  The old code was discovered when upgrading a site from 18.10 to 20.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1888743/+subscriptions


References