Issue Details (XML | Word | Printable)

Key: CONTRIB-628
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Anthony Borrow
Reporter: Anthony Borrow
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Non-core contributed modules

MRBS: Remove irrelevant files

Created: 03/Aug/08 03:49 AM   Updated: 10/Aug/08 01:17 AM
Return to search
Component/s: Block: Mrbs
Affects Version/s: 2.0
Fix Version/s: None

File Attachments: 1. File CONTRIB-628.diff (352 kB)
2. File CONTRIB-630.diff (143 kB)

Issue Links:
Dependency
 

Participants: Anthony Borrow and Stephen Bourget
Security Level: None
QA Assignee: Stephen Bourget
Resolved date: 05/Aug/08
Affected Branches: MOODLE_20_STABLE


 Description  « Hide
Remove irrelevant files including:

edit_users.php - since all users should be managed via Moodle
auth_*.php files except for auth_moodle.php
session_* files except session_php
lang.*.php files - all language strings should be in lang/xx_utf8/block_mrbs.php
move site_faq.html files into /blocks/mrbs/lang/xx_utf8/site_faq.html


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Anthony Borrow added a comment - 03/Aug/08 03:50 AM
CONTRIB-628 is subtask of CONTRIB-230

Anthony Borrow added a comment - 03/Aug/08 04:01 AM
Stephen,

I know it looks like I am just dead set to break something but the ideas keep coming. My general sentiment is that the less code we have, the less we have to maintain, the less possible security holes, etc.

The language strings for languages other than en, de, and es can be obtained either from MRBS or the 18STABLE branch. As such, they are not used and no longer needed but still accessible if someone wants to provide an additional language pack for the block. If so, they should make sure to also include a translation of the help/site_faq.html file. If they do not, it will load the English version following the Moodle tradition of filling in an empty language string with the English equivalent. Let me know your thoughts even if its just +1 or -100

Peace - Anthony


Anthony Borrow added a comment - 03/Aug/08 04:09 AM
I think we can also safely remove phpinfo2.php since Moodle has a phpinfo.php under Site Administration - Server - PHP info.

Anthony Borrow added a comment - 03/Aug/08 04:23 AM
Patch file for irrelevant file removal and some minor languages fixes

Anthony Borrow added a comment - 03/Aug/08 04:30 AM
OK, I've committed the removal of the files. Let me know if there are any that should be un-removed or others can we can get rid of. I'm assigning Stephen for QA, if it looks good, you can go ahead and close this issue. Thanks again for your help in reviewing this and in keeping me sane. Peace - Anthony

Anthony Borrow added a comment - 03/Aug/08 04:36 AM
I would ideally like to get to a point where we can remove language.php. I believe all that it is doing at this point is setting the locale but I need to take a closer look at where it is used and which variable are using it. Peace - Anthony

Anthony Borrow added a comment - 03/Aug/08 05:16 AM
I also removed the mrbs_setup folder under /blocks/mrbs/db/ as was not needed especially post install.xml

Stephen Bourget added a comment - 03/Aug/08 10:01 PM
Looks OK to me, but I will not be able to test it until the end of this week.

One comment however. You may want to review the contents of the site_faq.html file and update it to reflect some of the changes you made (The authentication section should probably be revised)

-Steve


Anthony Borrow added a comment - 04/Aug/08 07:22 PM
Stephen - I revised the FAQ page and made it more specific to the Moodle block including a link to Moodle docs. Would you like for me to include a URL for folks to be able to Moodle message you (since you are mentioned on the page)? Peace - Anthony

Anthony Borrow added a comment - 05/Aug/08 02:07 PM
a diff file showing the removal of the mail related files no longer used after resolving CONTRIB-630

Anthony Borrow added a comment - 05/Aug/08 02:10 PM
Stephen - I have deleted all the Mail related files and directories. I tried to search to make sure that there was nothing that was being used but it is always possible to miss something. Let me know if you discover any problems. Peace - Anthony

Stephen Bourget added a comment - 10/Aug/08 01:17 AM
I've gone through and tested the changes and they all seem to work.

Closing the issue.

-Steve