]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19319 xmldb docs - move intro paragraph out from xlst
authorstronk7 <stronk7>
Thu, 28 May 2009 00:07:59 +0000 (00:07 +0000)
committerstronk7 <stronk7>
Thu, 28 May 2009 00:07:59 +0000 (00:07 +0000)
admin/xmldb/actions/generate_documentation/generate_documentation.class.php
admin/xmldb/actions/generate_documentation/xmldb.xsl

index 436ec41948a98f36170d1ec19d6ebe081dec94a2..1059048fdb5e8a89aa5ae9b41fe1eabdd88e144f 100644 (file)
@@ -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();
index d595e3b90e352320eff977ec3a6e3959c8b6e914..2bace7f06832f90565076f5769c469f688691601 100644 (file)
@@ -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>