mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-19319 xmldb docs - move intro paragraph out from xlst
This commit is contained in:
parent
6ef8b35a4b
commit
12bef9fe30
@ -38,7 +38,8 @@ class generate_documentation extends XMLDBAction {
|
||||
|
||||
/// Get needed strings
|
||||
$this->loadStrings(array(
|
||||
'backtomainview' => 'xmldb'
|
||||
'backtomainview' => 'xmldb',
|
||||
'documentationintro' => 'xmldb'
|
||||
));
|
||||
}
|
||||
|
||||
@ -74,6 +75,11 @@ class generate_documentation extends XMLDBAction {
|
||||
$b .= '</p>';
|
||||
$this->output=$b;
|
||||
|
||||
$c = ' <p class="centerpara">';
|
||||
$c .= $this->str['documentationintro'];
|
||||
$c .= '</p>';
|
||||
$this->output.=$c;
|
||||
|
||||
if(class_exists('XSLTProcessor')) {
|
||||
/// Transform XML file and display it
|
||||
$doc = new DOMDocument();
|
||||
|
@ -5,8 +5,6 @@
|
||||
|
||||
<!-- Top level: disclaimer/intro -->
|
||||
<xsl:template match="/">
|
||||
<p>This documentation is generated automatically from the XMLDB database
|
||||
definition. It is available only in English.</p>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user