-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core] Remove duplicated getActiveModules function #7446
Conversation
@kongtiaowang @ridz1208 can one of you review/test this? This is blocking the DQT API because, in removing the function, it also updates all the places that needed it to have access to a |
3aad732
to
4dd86a9
Compare
There was a static getActiveModules function in the module class as well as a getActiveModules function in the LorisInstance class. This removes the duplicate and unnecessary function, cleaning up the references to the non-static version now that NDB_Page has a LorisInstance object passed in the constructor.
01a5a7e
to
7fff15b
Compare
@@ -79,7 +79,6 @@ class Dashboard extends \NDB_Form | |||
// calculating the body. | |||
$factory = \NDB_Factory::singleton(); | |||
$user = $factory->user(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should discuss this change
Following aces#7446, one of the changes involves `php/libraries/NullModule.class.inc` that now requires a `LorisInstance` type parameter. This fix adds this parameter in the lorisform_parser.php script.
Following #7446, one of the changes involves php/libraries/NullModule.class.inc that now requires a LorisInstance type parameter. This fix adds a missing parameter in the lorisform_parser.php script.
There was a static getActiveModules function in the module class
as well as a getActiveModules function in the LorisInstance class.
This removes the duplicate and unnecessary function, cleaning up the
references to the non-static version now that NDB_Page has a LorisInstance
object passed in the constructor and all references should be able to use
the non-static version.