Jump to content

[4.6.3 API] Bug in hello.php


Go to solution Solved by Ryan Ashbrook,

Recommended Posts

Posted (edited)

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
  • 3 weeks later...
  • Recently Browsing   0 members

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