Browse Source

Suppression références à index.php inutiles

Simounet 1 year ago
parent
commit
b253b2af2e
5 changed files with 16 additions and 16 deletions
  1. 5 5
      action.php
  2. 1 1
      install.php
  3. 3 3
      templates/marigolds/header.html
  4. 6 6
      templates/marigolds/index.html
  5. 1 1
      templates/marigolds/settings.html

+ 5 - 5
action.php

@@ -78,7 +78,7 @@ switch ($action){
         if(isset($_['last-event-id']))$whereClause['id'] = '<= ' . $_['last-event-id'];
         $eventManager->change(array('unread'=>'0'),$whereClause);
         if(!Functions::isAjaxCall()){
-            header('location: ./index.php');
+            header('location: ./');
         }
     break;
 
@@ -94,7 +94,7 @@ switch ($action){
         }
 
         if (!Functions::isAjaxCall()){
-            header('location: ./index.php');
+            header('location: ./');
         }
 
     break;
@@ -466,11 +466,11 @@ switch ($action){
             $user = $userManager->exist($_['login'],$_['password'],$salt,@$_['otp']);
             if($user==false){
                 error_log("Leed: wrong login for '".$_['login']."'");
-                header('location: ./index.php?action=wrongLogin');
+                header('location: ./?action=wrongLogin');
             }else{
                 $_SESSION['currentUser'] = serialize($user);
                 if (isset($_['rememberMe'])) $user->setStayConnected();
-                header('location: ./index.php');
+                header('location: ./');
             }
             exit();
         }
@@ -498,7 +498,7 @@ switch ($action){
         $_SESSION = array();
         session_unset();
         session_destroy();
-        header('location: ./index.php');
+        header('location: ./');
     break;
 
     case 'displayOnlyUnreadFeedFolder':

+ 1 - 1
install.php

@@ -118,7 +118,7 @@ $install->launch($_, $installActionName);
 <div class="global-wrapper">
     <div id="header-container">
         <header class="wrapper clearfix">
-            <h1 class="logo" id="title"><a href="./index.php">L<i>eed</i></a></h1>
+            <h1 class="logo" id="title"><a href="./">L<i>eed</i></a></h1>
             <nav>
             </nav>
         </header>

+ 3 - 3
templates/marigolds/header.html

@@ -24,7 +24,7 @@
         <a id="pageTop" class="hidden">{$action}</a>
         <div id="header-container">
             <header class="wrapper clearfix">
-                <h1 class="logo" id="title"><a href="./index.php">L<i>eed</i></a><div class="versionBloc">{#LEED_VERSION_NUMBER#}&nbsp;{#LEED_VERSION_NAME#}</div></h1>
+                <h1 class="logo" id="title"><a href="./">L<i>eed</i></a><div class="versionBloc">{#LEED_VERSION_NUMBER#}&nbsp;{#LEED_VERSION_NAME#}</div></h1>
                 <div class="loginBloc">
                     {if="!$myUser"}
                     {if="@$wrongLogin"}
@@ -53,8 +53,8 @@
 
                 <nav>
                     <ul>
-                        <li><a href="index.php" title="{function="_t('HOME')"}"><i class="icon-home"></i></a></li>
-                        <li><a href="index.php?action=favorites" title="{function="_t('FAVORITES')"}"><i class="icon-star-empty"></i></a></li>
+                        <li><a href="./" title="{function="_t('HOME')"}"><i class="icon-home"></i></a></li>
+                        <li><a href="./?action=favorites" title="{function="_t('FAVORITES')"}"><i class="icon-star-empty"></i></a></li>
                         <li><a href="settings.php" title="{function="_t('MANAGE')"}"><i class="icon-cog"></i></a></li>
                         <li><a class="synchronyzeButton" title="{function="_t('LAUNCH_SYNCHRONISATION')"}" onclick="synchronize('{if="$myUser"}{$synchronisationCode}{/if}');"><i class="icon-arrows-cw"></i></a></li>
                         {function="Plugin::callHook("navigate_post_link", array(&$myUser))"}

File diff suppressed because it is too large
+ 6 - 6
templates/marigolds/index.html


+ 1 - 1
templates/marigolds/settings.html

@@ -99,7 +99,7 @@
                                 {$feedName=Functions::truncate($value2->getName(),40)}
                                 <li class="feedListItem{if="$value->getLastSyncInError()==1"} errorSync{/if}">
                                     <span class="feedTitle js-feedTitle"{if="$value->getLastSyncInError()==1"} title="{function="_t('SYNCHRONISATION_ERROR')"}"{/if}>
-                                        <a{if="$value->getLastSyncInError()==1"} class="inError"{/if} href="index.php?action=selectedFeed&feed={$value2->getId();}" data-feed-id="{$value2->getId()}">{$feedName}</a><a href="{$value2->getUrl()}" class="underlink">{$value2->getUrl()}</a>
+                                        <a{if="$value->getLastSyncInError()==1"} class="inError"{/if} href="?action=selectedFeed&feed={$value2->getId();}" data-feed-id="{$value2->getId()}">{$feedName}</a><a href="{$value2->getUrl()}" class="underlink">{$value2->getUrl()}</a>
                                     </span>
                                     <div class="feedAction">
                                         <select class="feedFolder" onchange="changeFeedFolder(this,{$value2->getId()});">