Merging from accidental branch split
authorDan
Sun, 10 May 2009 14:44:50 -0400
changeset 961 e5abd87bccef
parent 960 e74741b8360b (current diff)
parent 956 25b1bdce985b (diff)
child 962 ceeecb160aec
Merging from accidental branch split
--- a/includes/common.php	Sun May 10 14:44:37 2009 -0400
+++ b/includes/common.php	Sun May 10 14:44:50 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', '');