/[smeserver]/rpms/horde/sme8/horde-3.3.11-prevent-deprecated-warnings.patch
ViewVC logotype

Annotation of /rpms/horde/sme8/horde-3.3.11-prevent-deprecated-warnings.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Sep 19 06:42:01 2011 UTC (13 years, 2 months ago) by snetram
Branch: MAIN
CVS Tags: horde-3_3_11-2_el5_sme, HEAD
* Mon Sep 19 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 3.3.11-2
- Fix deprecated warnings when using PHP 5.3+ [SME: 6726]

1 snetram 1.1 diff -up horde-3.3.11/lib/Horde/Notification.php.prevent-deprecated-warnings horde-3.3.11/lib/Horde/Notification.php
2     --- horde-3.3.11/lib/Horde/Notification.php.prevent-deprecated-warnings 2010-11-23 01:22:36.000000000 +0100
3     +++ horde-3.3.11/lib/Horde/Notification.php 2011-09-19 08:37:00.000000000 +0200
4     @@ -61,7 +61,7 @@ class Notification {
5     static $notification = array();
6    
7     if (!isset($notification[$stack])) {
8     - $notification[$stack] = &new Notification($stack);
9     + $notification[$stack] = new Notification($stack);
10     }
11    
12     return $notification[$stack];
13     diff -up horde-3.3.11/lib/Horde/Perms.php.prevent-deprecated-warnings horde-3.3.11/lib/Horde/Perms.php
14     --- horde-3.3.11/lib/Horde/Perms.php.prevent-deprecated-warnings 2010-11-23 01:22:36.000000000 +0100
15     +++ horde-3.3.11/lib/Horde/Perms.php 2011-09-19 08:37:56.000000000 +0200
16     @@ -452,14 +452,14 @@ class Perms {
17     }
18    
19     if (is_null($driver)) {
20     - $perms = &new Perms($params);
21     + $perms = new Perms($params);
22     } else {
23     $class = 'Perms_' . $driver;
24     if (!class_exists($class)) {
25     include 'Horde/Perms/' . $driver . '.php';
26     }
27     if (class_exists($class)) {
28     - $perms = &new $class($params);
29     + $perms = new $class($params);
30     } else {
31     $perms = false;
32     }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed