]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-13985 - removed call to get_string, translation of this string made no sense...
authorscyrma <scyrma>
Thu, 20 Mar 2008 07:05:06 +0000 (07:05 +0000)
committerscyrma <scyrma>
Thu, 20 Mar 2008 07:05:06 +0000 (07:05 +0000)
lib/weblib.php

index 1f0f143b5cbc9a72b4741128bac2639d2cd1def0..b826f25a2e9c3a81daf57c286fd5c41d093c8364 100644 (file)
@@ -685,7 +685,8 @@ if (!function_exists('stripos')) {    /// Only exists in PHP 5
  *
  * $url must be relative to home page  eg /mod/survey/stuff.php
  * @param string $url Web link relative to home page
- * @param string $name Name to be assigned to the popup window
+ * @param string $name Name to be assigned to the popup window (this is used by 
+ *   client-side scripts to "talk" to the popup window)
  * @param string $linkname Text to be displayed as web link
  * @param int $height Height to assign to popup window
  * @param int $width Height to assign to popup window
@@ -727,11 +728,11 @@ function element_to_popup_window ($type=null, $url=null, $name=null, $linkname=n
     if ($class) {
         $class = ' class="'.$class.'" ';
     }
-
-    // get some default string, using the localized version of legacy defaults
     if (!$name) {
-        $name = get_string('popupwindow');
+        $name = 'popup';
     }
+    
+    // get some default string, using the localized version of legacy defaults
     if (!$linkname) {
         $linkname = get_string('clickhere');
     }