Navigation Menu

Skip to content

Commit

Permalink
MDL-13985 - removed call to get_string, translation of this string ma…
Browse files Browse the repository at this point in the history
…de no sense and broke badly. (merge)
  • Loading branch information
scyrma committed Mar 20, 2008
1 parent 902d5cc commit a5fe617
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/weblib.php
Expand Up @@ -685,7 +685,8 @@ function stripos($haystack, $needle, $offset=0) {
*
* $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
Expand Down Expand Up @@ -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');
}
Expand Down

0 comments on commit a5fe617

Please sign in to comment.