Jump to content

[4.6.3 API] Bug in hello.php


Go to solution Solved by Ryan Ashbrook,

Recommended Posts

In \applications\core\api\hello.php you have this code:

	public function GETindex()
	{
		return new \IPS\Api\Response( 200, array(
			'communityName'	=> \IPS\Settings::i()->board_name,
			'communityUrl'	=> \IPS\Settings::i()->base_url,
			'ipsApplications'	=> \IPS\Application::load('core')->version,
			'ipsApplications' => array_filter( array_keys( \IPS\Application::applications() ), function( $k ) { return \in_array( $k, \IPS\IPS::$ipsApps ); }  )
			) );
	}

The version line used to have the ipsVersion key, looks like it was overwritten by mistake with ipsApplications:

			'ipsVersion'	=> \IPS\Application::load('core')->version

 

Edited by teraßyte
Link to comment
Share on other sites

  • 3 weeks later...
  • Solution
1 minute ago, The Old Man said:

Hi @Stuart Silvester

Can you confirm that this has been fixed in the recent updates, please?

I think I fell foul of this recently whilst experimenting with it from a Wordpress plugin and gave up thinking it was me at fault.

Thank you.

Yes, this is fixed in the latest release.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...