Skip to content

Commit

Permalink
Fix some function definitions (they should be static)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Dec 22, 2009
1 parent d711c5b commit bdd7c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/gallery_unit_test/helpers/MY_request.php
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery_unit_test/helpers/diff.php
Expand Up @@ -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`;
Expand Down

0 comments on commit bdd7c68

Please sign in to comment.