MDL-19319 xmldb docs - move intro paragraph out from xlst
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user