[dev] small patch

Jan Schneider jan at horde.org
Tue Jul 6 06:40:07 PDT 2004


Zitat von Tarjei Huse <tarjei+a_lists.phpgw at nu.no>:

> This patch was needed for me to get Horde_Block_Collection to work.
> Tarjei

I committed something similar, thanks!

> RCS file: /repository/framework/Block/Block/Collection.php,v
> retrieving revision 1.25
> diff -u -r1.25 Collection.php
> --- framework/Block/Block/Collection.php        1 Jun 2004 19:28:57
> -0000       1.25
> +++ framework/Block/Block/Collection.php        6 Jul 2004 13:10:23
> -0000
> @@ -39,9 +39,9 @@
>
>          global $registry;
>          require_once 'Horde/Block.php';
> -
>          foreach ($registry->listApps() as $app) {
> -            if (is_a($registry->pushApp($app), 'PEAR_Error')) {
> +            $apperr = $registry->pushApp($app);
> +            if (is_a($apperr, 'PEAR_Error')) {
>                  continue;
>              }
>              $blockdir = $registry->getParam('fileroot', $app) .
> '/lib/Block';
>
>
>
> --
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the dev mailing list