Permalink
Browse files

Fix some function definitions (they should be static)

  • Loading branch information...
bharat committed Dec 22, 2009
1 parent d711c5b commit bdd7c68ede05d46ba758b0ab3e04b46202d761af
Showing with 2 additions and 2 deletions.
  1. +1 −1 modules/gallery_unit_test/helpers/MY_request.php
  2. +1 −1 modules/gallery_unit_test/helpers/diff.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class request extends request_Core {
- public function set_user_agent($value) {
+ static function set_user_agent($value) {
self::$user_agent = null;
$_SERVER["HTTP_USER_AGENT"] = $value;
}
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class diff_Core {
- public function compare($a, $b) {
+ static function compare($a, $b) {
fwrite(fopen($a_name = tempnam("/tmp", "test"), "w"), $a);
fwrite(fopen($b_name = tempnam("/tmp", "test"), "w"), $b);
return `diff $a_name $b_name`;

0 comments on commit bdd7c68

Please sign in to comment.