Skip to content

Commit

Permalink
Make these work with current Horde versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 12, 2015
1 parent b9b9e76 commit d9452a4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
7 changes: 5 additions & 2 deletions framework/Image/test/gd.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
* @package Image
*/

$context = array(
'tmpdir' => Horde::getTempdir(),
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit(
'horde',
array('authentication' => 'none', 'session_control' => 'none')
);

$image = new Horde_Image_Gd(
array('height' => 400, 'width' => 400),
array('tmpdir' => Horde::getTempdir())
Expand Down
11 changes: 9 additions & 2 deletions framework/Image/test/svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
* @package Image
*/

require_once __DIR__ . '/../Image/Svg.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit(
'horde',
array('authentication' => 'none', 'session_control' => 'none')
);

$image = new Horde_Image_svg(array('height' => 400, 'width' => 400));
$image = new Horde_Image_Svg(
array('height' => 400, 'width' => 400),
array('tmpdir' => Horde::getTempdir())
);

$image->rectangle(30, 30, 100, 60, 'black', 'yellow');
$image->roundedRectangle(30, 30, 100, 60, 15, 'black', 'red');
Expand Down
11 changes: 9 additions & 2 deletions framework/Image/test/swf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
* @package Image
*/

require_once __DIR__ . '/../Image/Swf.php';
require_once __DIR__ . '/../lib/Application.php';
Horde_Registry::appInit(
'horde',
array('authentication' => 'none', 'session_control' => 'none')
);

$image = new Horde_Image_swf(array('height' => 400, 'width' => 400));
$image = new Horde_Image_Swf(
array('height' => 400, 'width' => 400),
array('tmpdir' => Horde::getTempdir())
);

$image->rectangle(30, 30, 100, 60, 'black', 'yellow');
$image->roundedRectangle(30, 30, 100, 60, 15, 'black', 'red');
Expand Down

0 comments on commit d9452a4

Please sign in to comment.