MDL-22054 converting block name strings to pluginname
authorPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 11:20:58 +0000 (11:20 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 11:20:58 +0000 (11:20 +0000)
AMOS START
 MOV [html,block_html],[pluginname,block_html]
AMOS END

blocks/html/block_html.php
blocks/html/lang/en/block_html.php

index 7bc83b5..5cfe4fe 100755 (executable)
@@ -3,7 +3,7 @@
 class block_html extends block_base {
 
     function init() {
 class block_html extends block_base {
 
     function init() {
-        $this->title = get_string('html', 'block_html');
+        $this->title = get_string('pluginname', 'block_html');
         $this->version = 2007101509;
     }
 
         $this->version = 2007101509;
     }
 
index 3fafc1a..493fe12 100644 (file)
@@ -25,6 +25,6 @@
 
 $string['configcontent'] = 'Content';
 $string['configtitle'] = 'Block Title';
 
 $string['configcontent'] = 'Content';
 $string['configtitle'] = 'Block Title';
-$string['html'] = 'HTML';
 $string['leaveblanktohide'] = 'leave blank to hide the title';
 $string['newhtmlblock'] = '(new HTML block)';
 $string['leaveblanktohide'] = 'leave blank to hide the title';
 $string['newhtmlblock'] = '(new HTML block)';
+$string['pluginname'] = 'HTML';