Home » Internationalization » Translation2 » Bug #6585
Admin add string
Details
| Submitted | 2006-01-25 22:02 UTC |
|---|---|
| From | office at cws-trummer dot biz |
| Assigned | quipo |
| Status | Bogus |
| Package | Translation2 |
| PHP Version | 5.1.0 |
| OS | win xp prof |
| Roadmaps | (Not assigned) |
Comments
[2006-01-25 22:02 UTC] office at cws-trummer dot biz
Description:
------------
Fatal error: Call to undefined method PEAR_Error::add() in C:\Programme\xampp\htdocs\simplydone\setup\translation.php on line 60
in de function add in admin.php storage->add is called. i use the container DB but i cant find a function add in db.php ...
Test script:
---------------
require_once 'Translation2/Admin.php';
$stringid = $_REQUEST["stringid"];
$pageid = $_REQUEST["pageid"];
$de = $_REQUEST["de"];
$en = $_REQUEST["en"];
$tr =& Translation2_Admin::factory("DB", "mysql:root:******@localost/*******");
$stringArray = array(
'de' => $de,
'en' => $en,
);
$tr->add($stringid, $pageid, $stringArray);
Expected result:
----------------
no error message :)
Actual result:
--------------
Fatal error: Call to undefined method PEAR_Error::add() in C:\Programme\xampp\htdocs\simplydone\setup\translation.php on line 60