# HG changeset patch # User Dan # Date 1241575583 14400 # Node ID 25b1bdce985b3a13b577cd9649efad1c18dc7e5c # Parent de4f81abc5e3ce0e4495bfa8f6ca9e3b07638cfc API: Properly handles $title again diff -r de4f81abc5e3 -r 25b1bdce985b includes/common.php --- a/includes/common.php Tue May 05 21:53:48 2009 -0400 +++ b/includes/common.php Tue May 05 22:06:23 2009 -0400 @@ -449,6 +449,12 @@ $output = new $class(); + // Are we running from the API? If so, did the page set a title? + if ( !defined('ENANO_INTERFACE_INDEX') && !defined('ENANO_INTERFACE_AJAX') && isset($title) ) + { + $output->set_title($title); + } + // We're ready for whatever life throws us now, at least from an API point of view. define('ENANO_MAINSTREAM', '');