skala
rrodriguez 16 years ago
parent 45972ead4b
commit 668f5e74f7
  1. 0
      main/lang/spanish/trad4all.inc.php
  2. 2
      main/newscorm/lp_controller.php
  3. 3
      tests/main/inc/lib/internationalization.lib.test.php

@ -437,7 +437,7 @@ switch($action)
if(isset($_POST['submit_button']))
{
$_SESSION['oLP']->edit_item($_GET['id'], $_POST['parent'], $_POST['previous'], Security::remove_XSS($_POST['title']), $_POST['description']);
$_SESSION['oLP']->edit_item($_GET['id'], $_POST['parent'], $_POST['previous'], Security::remove_XSS($_POST['title'], $_POST['description']) );
$is_success = true;
}

@ -521,7 +521,7 @@ class TestInternationalization extends UnitTestCase {
public function test_api_ereg() {
$pattern = 'scorm/showinframes.php([^"\'&]*)(&|&)file=([^"\'&]*)$';
$string = 'http://localhost/dokeos/main/scorm/showinframes.php?id=5&file=test.php';
$res = api_ereg($pattern, $string, $regs);
$res = api_ereg($pattern, $string);
$this->assertTrue(is_numeric($res));
$this->assertTrue($res == 45);
//var_dump($res);
@ -541,6 +541,7 @@ class TestInternationalization extends UnitTestCase {
public function testapi_eregi() {
$pattern = 'scorm/showinframes.php([^"\'&]*)(&|&)file=([^"\'&]*)$';
$string = 'http://localhost/dokeos/main/scorm/showinframes.php?id=5&file=test.php';
$regs = '';
$res = api_eregi($pattern, $string, $regs);
$this->assertTrue(is_numeric($res));
$this->assertTrue($res == 45);

Loading…
Cancel
Save