It would work for the time being.  Still leaves unanswered what to do if
the classes become abstract.  Guess we can look at that later on.

If you want to copy my commit over and make the change, go ahead.  The bus
just hit the highway and I don't know when I'll next be online on my laptop.

On Monday, January 7, 2013, Rouven Weßling wrote:

> In libraries/joomla/application/cli.php:
>
> >  	 */
> >  	public static function getInstance($name = null)
> >  	{
> > -		// Only create the object if it doesn't exist.
> > -		if (empty(self::$instance))
> > -		{
> > -			if (class_exists($name) && (is_subclass_of($name, 'JApplicationCli')))
> > -			{
> > -				self::$instance = new $name;
> > -			}
> > -			else
> > -			{
> > -				self::$instance = new JApplicationCli;
> > -			}
> > -		}
> > +		JLog::add(sprintf('%s is deprecated, use JApplicationBase::getInstance() instead.', __METHOD__), JLog::WARNING, 'deprecated');
>
> As I said untested :P I actually didn't do any modification, I just copy
> and pasted from above and when I was done fighting with GitHub JS and
> Safari I forgot to actually change the code..
>
> Lets try again:
>
> if (empty(static::$instance)){
>     if (class_exists($name) && (is_subclass_of($name, 'JApplicationBase')))
>     {
>         self::$instance = new $name;
>     }
>     else
>     {
>         self::$instance = new static;
>     }}
>
>  —
> Reply to this email directly or view it on GitHub<https://github.com/joomla/joomla-platform/pull/1772/files#r2571823>.
>
>


-- 
- Michael

Please pardon any errors, this message was sent from my iPhone.