allc- v.2.3

allc- v.2.3

by sue sugizaki -
Number of replies: 3

Q: would allc work alright on v.2.3?

I've installed it on my testMoodle 2.3. It seems to be working alrigt, tho'.

Average of ratings: -
In reply to sue sugizaki

Re: allc- v.2.3

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

I don't see why not.

In reply to Mary Evans

Re: allc- v.2.3

by sue sugizaki -

Hi,

According to its download page, the requirement is 2.1 still.

http://moodle.org/plugins/pluginversions.php?plugin=theme_allc

 

And I just wondered.

In reply to sue sugizaki

Re: allc- v.2.3

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

The only thing wrong with it will be the MAIN_CONTENT TOKEN but even so this will still work in 2.3 but you will get a warning.

So just change...

<?php echo main_content():core_renderer::MAIN_CONTENT_TOKEN ?>

to...

<?php echo method_exists($OUTPUT, "main_content")?$OUTPUT->main_content():core_renderer::MAIN_CONTENT_TOKEN ?>

Then it will work in any verions, especially if you remove the line for required version from the version.php smile