Jump to content

Hardcoded RSS extension name


Recommended Posts

Although it is right in the extension's default:

namespace IPS\{app}\extensions\core\RssImport;

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * @brief	RSS Import extension: {class}
 */
class _{class}

it only works if you create your extension with the name RssImport.

Not tested but this is probably due to this in \IPS\core\Rss\Import:

	public function get__extension()
	{
		$classname = 'IPS\\' . $this->_application->directory . '\extensions\core\RssImport\RssImport';
		return new $classname;
	}

Thank you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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