Index: trunk/extensions/Configure/Configure.handler-files.php |
— | — | @@ -33,14 +33,14 @@ |
34 | 34 | # maybe the first time the user use this extensions, do not override |
35 | 35 | # anything |
36 | 36 | return array(); |
37 | | - $cont = file_get_contents( $file ); |
| 37 | + $cont = @file_get_contents( $file ); |
38 | 38 | if ( empty( $cont ) ) |
39 | 39 | # Weird, should not happen |
40 | 40 | return array(); |
41 | 41 | $arr = unserialize( $cont ); |
42 | 42 | if ( !is_array( $arr ) ) |
43 | 43 | # Weird, should not happen too |
44 | | - return; |
| 44 | + return array(); |
45 | 45 | return $arr; |
46 | 46 | } |
47 | 47 | |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | # maybe the time the user use this extensions, do not override |
59 | 59 | # anything |
60 | 60 | return array(); |
61 | | - $cont = file_get_contents( $file ); |
| 61 | + $cont = @file_get_contents( $file ); |
62 | 62 | if ( empty( $cont ) ) |
63 | 63 | # Weird, should not happen |
64 | 64 | return array(); |
— | — | @@ -98,8 +98,8 @@ |
99 | 99 | $arch = $this->getArchiveFileName(); |
100 | 100 | $cur = $this->getFileName(); |
101 | 101 | $cont = serialize( $settings ); |
102 | | - file_put_contents( $arch, $cont ); |
103 | | - return ( file_put_contents( $cur, $cont ) !== false ); |
| 102 | + @file_put_contents( $arch, $cont ); |
| 103 | + return ( @file_put_contents( $cur, $cont ) !== false ); |
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
— | — | @@ -157,8 +157,6 @@ |
158 | 158 | * @return String full path to the file |
159 | 159 | */ |
160 | 160 | public function getArchiveFileName( $ts = null ) { |
161 | | - global $IP; |
162 | | - |
163 | 161 | if ( $ts === null ) |
164 | 162 | $ts = wfTimestampNow(); |
165 | 163 | |