mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00

Prevent moodle_url error, cleanup entity encoding and decoding, disable tex source view when TeX and Algebra plugins disabled, localise TeX source popup and prevent phishing attempts, fix executable permission of Algebra pearl script, prevent image error in tex debug when Tex/Ghostscript not configured properly, fix copyright blocks and phpdocs, improve coding style, fix wrong source display link in Algebra filter.
17 lines
287 B
Perl
Executable file
17 lines
287 B
Perl
Executable file
#!/usr/bin/perl
|
|
|
|
use lib '.';
|
|
use AlgParser;
|
|
|
|
my $parser = new AlgParserWithImplicitExpand;
|
|
my $ret;
|
|
|
|
$ret = $parser -> parse($ARGV[0]);
|
|
if ( ref($ret) ) {
|
|
$parser -> tostring();
|
|
$parser -> normalize();
|
|
print $parser -> tolatex();
|
|
} else {
|
|
print $parser->{htmlerror};
|
|
}
|
|
|