mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #59158
[Bug 1867822] Re: Tidy up the artefact attachments_from_id_list() function
** 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/1867822
Title:
Tidy up the artefact attachments_from_id_list() function
Status in Mahara:
Fix Committed
Bug description:
There are a bunch of places that call this function and then straight
after do a loop to add a file icon
We should do the adding of the file icon within the call to attachments_from_id_list()
eg:
htdocs/artefact/resume/lib.php:2088
htdocs/artefact/blog/lib.php:1051
htdocs/artefact/comment/lib.php:511
htdocs/artefact/internal/notes.php:167
htdocs/artefact/internal/notes.json.php:167
Also there are a bunch of places where we don't even call the function
and just duplicate it:
htdocs/artefact/resume/composite.json.php:
htdocs/artefact/resume/lib.php
htdocs/artefact/blog/blocktype/recentposts/lib.php:
These should be fixed to use the function we already have
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1867822/+subscriptions
References