MDL-22061 removing unnecessary [[ tests
authorPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 20:50:37 +0000 (20:50 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 20:50:37 +0000 (20:50 +0000)
blocks/search/config_global.html
lib/authlib.php

index 643b939..e05320d 100644 (file)
@@ -273,8 +273,6 @@ if ($blocks = $DB->get_records_select('block', "name $searchable_list", $params,
 
         // multiple fallback strategy to get the name of the block
         $blocklabel = get_string('pluginname', 'block_'.$block->name);
-        if ($blocklabel == '[[blockname]]') $blocklabel = get_string($block->name, 'block_'.$block->name);
-        if ($blocklabel == "[[{$block->name}]]") $blocklabel = "<span class=\"dimmed_text\">$block->name</span>";
         echo " - ".$blocklabel.'<br/>';
         if ($i % 20 == 0){
             echo "</td><td align=\"left\">";
index b8f16fe..78a4f0d 100644 (file)
@@ -423,10 +423,7 @@ class auth_plugin_base {
      * @return string The description
      */
     function get_description() {
-        $authdescription = get_string("auth_{$this->authtype}description", "auth");
-        if ($authdescription == "[[auth_{$this->authtype}description]]") {
-            $authdescription = get_string("auth_{$this->authtype}description", "auth_{$this->authtype}");
-        }
+        $authdescription = get_string("auth_{$this->authtype}description", "auth_{$this->authtype}");
         return $authdescription;
     }