Re: cvs: php4 /pear/HTML Menu.php

From: Date: Wed, 12 Sep 2001 17:47:18 +0000
Subject: Re: cvs: php4 /pear/HTML Menu.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-837@lists.php.net to get a copy of this message
On Wed, 12 Sep 2001 19:23:07 +0200, Tomas V.V.Cox wrote: >On Wednesday 12 September 2001 17:55, Martin Jansen wrote: >> mj Wed Sep 12 11:55:41 2001 EDT >> >> Modified files: >> /php4/pear/HTML Menu.php >> Log: >> * Patch by Ronald van den Berg <vandenberg@auxilium-sd.nl> >> >> >> function getCurrentURL() { >> - return $GLOBALS[$this->url_env_var]; >> + return $this->url_env_var; >> } > >This patch will break the functionality of the class. Sorry - I didn't see that before commiting. Right now there is pretty much work here to do and the things that happened in the United States don't make it much easier :-(. >At least the patch could be (not tested), something like: > >if (!isset($GLOBALS[$this->url_env_var]) { > return $this->url_env_var; >} >return $GLOBALS[$this->url_env_var]; This looks much better to me. - Martin

« previous php.pear.cvs (#837) next »