Issue Details (XML | Word | Printable)

Key: MDL-18354
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Dongsheng Cai
Reporter: Martin Dougiamas
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-13766

Brand-new installation or upgrade from 1.9 should have "Local Files" and "Upload file" enabled

Created: 24/Feb/09 04:17 PM   Updated: 10/Mar/09 11:03 AM
Return to search
Component/s: Repository API
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Dongsheng Cai and Martin Dougiamas
Security Level: None
Difficulty: Easy
Resolved date: 10/Mar/09
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
All new 2.0 sites should have "Local Files" and "Upload file" enabled by default.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Martin Dougiamas made changes - 24/Feb/09 04:18 PM
Field Original Value New Value
Priority Minor [ 4 ] Critical [ 2 ]
Dongsheng Cai made changes - 04/Mar/09 01:59 PM
Status Open [ 1 ] In Progress [ 3 ]
Dongsheng Cai committed 4 files to 'Moodle CVS' - 05/Mar/09 01:40 PM
"REPOSITORY/MDL-18354, enabled local and upload repository plugins when upgrading"
MODIFY repository/lib.php   Rev. 1.157    (+31 -6 lines)
MODIFY version.php   Rev. 1.1022    (+1 -1 lines)
MODIFY lang/en_utf8/repository.php   Rev. 1.45    (+2 -1 lines)
MODIFY lib/db/upgrade.php   Rev. 1.276    (+8 -2 lines)
Dongsheng Cai added a comment - 05/Mar/09 01:41 PM
Added.

martignoni committed 1 file to 'Lang CVS' - 09/Mar/09 01:49 AM
MDL-18354, string translated
MODIFY fr_utf8/repository.php   Rev. 1.46    (+2 -1 lines)
Dongsheng Cai added a comment - 09/Mar/09 02:12 PM
Martin, is it necessary to add this function to admin/index.php to check these plugins?

Martin Dougiamas added a comment - 09/Mar/09 02:23 PM
No, I think it would be a small code block in /lib/db/upgrade.php (triggered by a version bump in /version.php)

Martin Dougiamas added a comment - 09/Mar/09 02:58 PM
And for new installs, you need to add a function in each plugins lib.php called pluginname_install that will install itself.

Dongsheng Cai added a comment - 09/Mar/09 05:55 PM
Seems message/output/jabber/lib.php (include email and popup) are not called by installation script, xmldb_message_email_install should be created at /message/output/jabber/db/install.php

Dongsheng Cai committed 8 files to 'Moodle CVS' - 10/Mar/09 11:01 AM
"REPOSITORY, UPGRADE/MDL-18354, upgrade/install repository plugins using moodle hook"
ADD repository/upload/db/upgrade.php   Rev. 1.1    (+0 -0 lines)
ADD repository/local/db/install.php   Rev. 1.1    (+0 -0 lines)
ADD repository/upload/version.php   Rev. 1.1    (+0 -0 lines)
ADD repository/upload/db/install.php   Rev. 1.1    (+0 -0 lines)
ADD repository/local/db/upgrade.php   Rev. 1.1    (+0 -0 lines)
MODIFY lib/adminlib.php   Rev. 1.328    (+3 -2 lines)
MODIFY repository/lib.php   Rev. 1.160    (+2 -1 lines)
ADD repository/local/version.php   Rev. 1.1    (+0 -0 lines)
Dongsheng Cai added a comment - 10/Mar/09 11:03 AM
local and upload plugins will be enabled automatically when upgraduing or brand-new installation.

Dongsheng Cai made changes - 10/Mar/09 11:03 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]