API: Properly handles $title again
authorDan
Tue, 05 May 2009 22:06:23 -0400
changeset 956 25b1bdce985b
parent 955 de4f81abc5e3
child 961 e5abd87bccef
API: Properly handles $title again
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', '');