Code

f2e9187ba63e91b9db984acc2e8ef59defd6716f
[pkg-nagvis.git] / debian / patches / visibility_magic-set-method.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## visibility_magic-set-method.dpatch by Hendrik Frenzel <hfrenzel@scunc.net>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: make magicmethod __set public o avoid error
7 @DPATCH@
8 diff -urNad nagvis-1.4.6~/nagvis/includes/classes/validator/GlobalValidatorInteger.php nagvis-1.4.6/nagvis/includes/classes/validator/GlobalValidatorInteger.php
9 --- nagvis-1.4.6~/nagvis/includes/classes/validator/GlobalValidatorInteger.php  2010-02-04 21:51:13.000000000 +0100
10 +++ nagvis-1.4.6/nagvis/includes/classes/validator/GlobalValidatorInteger.php   2010-03-04 15:03:24.000000000 +0100
11 @@ -53,10 +53,10 @@
12          *
13          * @param   string   $name    Name from variable
14          * @param            $value   Value for variable
15 -        * @access  private
16 +        * @access  public
17          * @author  Michael Luebben <michael_luebben@web.de>
18          */
19 -       private function __set($name, $value) {
20 +       public function __set($name, $value) {
21                 $this->name = $value;
22         }
23  
24 diff -urNad nagvis-1.4.6~/nagvis/includes/classes/validator/GlobalValidatorString.php nagvis-1.4.6/nagvis/includes/classes/validator/GlobalValidatorString.php
25 --- nagvis-1.4.6~/nagvis/includes/classes/validator/GlobalValidatorString.php   2010-02-04 21:51:13.000000000 +0100
26 +++ nagvis-1.4.6/nagvis/includes/classes/validator/GlobalValidatorString.php    2010-03-04 15:04:56.000000000 +0100
27 @@ -53,10 +53,10 @@
28          *
29          * @param   string   $name    Name from variable
30          * @param            $value   Value for variable
31 -        * @access  private
32 +        * @access  public
33          * @author  Michael Luebben <michael_luebben@web.de>
34          */
35 -       private function __set($name, $value) {
36 +       public function __set($name, $value) {
37                 $this->name = $value;
38         }
39