mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-43896 admin: Fail validation of plugins with $module in version.php
- Loading branch information
Showing
7 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<?php | ||
|
||
$module->version = 2014122455; | ||
$plugin->version = 2014122455; |
2 changes: 0 additions & 2 deletions
2
admin/tool/installaddon/tests/fixtures/plugindir/foobar/version.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<?php | ||
|
||
$module->version = 10; // Ignored, this should use $plugin | ||
$plugin->version = 2013031900; | ||
$plugin->component = 'local_foobar'; | ||
$plugin->requires = 2013031200; | ||
$module->release = 'We are not an activity module!'; | ||
$plugin->maturity = MATURITY_ALPHA; | ||
//$plugin->release = 'And this is commented'; |
3 changes: 3 additions & 0 deletions
3
admin/tool/installaddon/tests/fixtures/plugindir/legacymod/lang/en/legacymod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
$string['modulename'] = 'Legacy activity module with $module in version.php'; |
4 changes: 4 additions & 0 deletions
4
admin/tool/installaddon/tests/fixtures/plugindir/legacymod/version.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
// Support for the $module has been dropped in Moodle 3.0. | ||
$module->version = 2013031900; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters