Fixes sector and function's display in the profile edition interface.
[platal.git] / modules / platal.php
index 9908013..1249335 100644 (file)
@@ -62,9 +62,8 @@ class PlatalModule extends PLModule
 
     function handler_index(&$page)
     {
-        global $globals;
-
         // Include X-XRDS-Location response-header for Yadis discovery
+        global $globals;
         header('X-XRDS-Location: ' . $globals->baseurl . '/openid/idp_xrds');
 
         // Redirect to the suitable page
@@ -93,7 +92,7 @@ class PlatalModule extends PLModule
         $page->changeTpl('platal/changeLog.tpl');
 
         $clog = pl_entities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
-        $clog = preg_replace('/=+\s*/', '</pre><hr /><pre>', $clog);
+        $clog = preg_replace('/===+\s*/', '</pre><hr /><pre>', $clog);
         // url catch only (not all wiki syntax)
         $clog = preg_replace(array(
             '/((?:https?|ftp):\/\/(?:\.*,*[\w@~%$£µ&i#\-+=_\/\?;])*)/ui',
@@ -470,6 +469,10 @@ Adresse de secours : " . Post::v('email') : ""));
 
     function handler_review(&$page, $action = null, $mode = null) 
     {
+        // Include X-XRDS-Location response-header for Yadis discovery
+        global $globals;
+        header('X-XRDS-Location: ' . $globals->baseurl . '/openid/idp_xrds');
+
         $this->load('review.inc.php');
         $dom = 'Review';
         if (@$GLOBALS['IS_XNET_SITE']) {