]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9823 Disclaimer HRef is repeated twice in the Link - Policy.php for some urls...
authorskodak <skodak>
Tue, 15 May 2007 19:42:53 +0000 (19:42 +0000)
committerskodak <skodak>
Tue, 15 May 2007 19:42:53 +0000 (19:42 +0000)
user/policy.php

index 7950755e7532039ae258d18770d443d9d9f0a32c..f23baea854600ae51c221874458b7a3f0c9f6b6e 100644 (file)
@@ -45,8 +45,8 @@
 
     echo '<div class="noticebox">';
     echo '<object id="policyframe" data="'.$CFG->sitepolicy.'" type="'.$mimetype.'">';
-    echo link_to_popup_window ($CFG->sitepolicy, 'agreement', $strpolicyagreementclick,
-                               500, 500, 'Popup window', 'none', true);
+    // we can not use our popups here, because the url may be arbitrary, see MDL-9823
+    echo '<a href="'.$CFG->sitepolicy.'" onclick="this.target=\'_blank\'">'.$strpolicyagreementclick.'</a>';
     echo '</object></div>';
 
   // see MDL-9798