Explorar el Código

fleat: update template

igb hace 1 mes
padre
commit
47afb9727e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      usr/themes/beardocs/header.php

+ 2 - 2
usr/themes/beardocs/header.php

@@ -32,7 +32,7 @@
     <script src="<?php $this->options->themeUrl('assets/js/uikit.js'); ?>"></script>
     <?php $this->header('commentReply=1&description=&pingback=0&xmlrpc=0&wlw=0&generator=&template=&atom='); ?>
     <script>
-        window.searchApi = "<?php echo General::apiRet('search');?>";
+        window.searchApi = "";
     </script>
     <?php if(General::Options('headerColorChoose') == true):?>
     <style>
@@ -231,7 +231,7 @@ $currentUrl = $_SERVER['REQUEST_URI'];
                 ?>';
 
             // 构建目标URL
-            var targetUrl = '/index.php/search/' + encodeURIComponent(searchQuery) + '/?category=' + category;
+            var targetUrl = '/search/' + encodeURIComponent(searchQuery) + '/?category=' + category;
 
             // 跳转到目标URL
             window.location.href = targetUrl;