]> 91.132.146.200 Git - insipid.git/commitdiff
fixed #15
authorBanana <mail@bananas-playground.net>
Sat, 28 May 2022 16:28:01 +0000 (18:28 +0200)
committerBanana <mail@bananas-playground.net>
Sat, 28 May 2022 16:28:01 +0000 (18:28 +0200)
webroot/lib/link.class.php
webroot/view/editcategories.php
webroot/view/edittags.php

index 13fee3ddd945cd776f8ce70f027cd9a4ec4f4738..cb00a53b629ab1873101ac42853d41745f3bf153 100644 (file)
@@ -232,7 +232,9 @@ class Link {
                        $search .= ' '.implode(" ", $tagArr);
                        $search .= ' '.implode(" ", $catArr);
                        $search .= ' '.$_t['host'];
-                       $search .= ' '.implode(' ',explode('/',$_t['path']));
+                       if(isset($_t['path'])) {
+                               $search .= ' '.implode(' ',explode('/',$_t['path']));
+                       }
             $search = trim($search);
                        $search = strtolower($search);
 
index 8d5d7e6635ad14bd1df6a313f49216239ba36a37..25c9273fedafc88bfd28caf13a72b4decda80734 100644 (file)
@@ -44,7 +44,7 @@
 
 </section>
 
-<section>
+<section class="section">
 <?php if(!empty($categoryCollection)) { ?>
 <div class="columns">
        <div class="column">
@@ -57,7 +57,9 @@
                                </tr>
                        <?php foreach ($categoryCollection as $k=>$v) { ?>
                                <tr>
-                                       <td><a href="index.php?p=overview&m=category&id=<?php echo urlencode($k); ?>" target="_blank"><?php echo $v['name']; ?></a></td>
+                                       <td>
+                                               <a href="index.php?p=overview&m=category&id=<?php echo urlencode($k); ?>"
+                                              target="_blank"><?php echo $v['name']; ?></a> <small>(#<?php echo $v['amount']; ?>)</small></td>
                                        <td>
                                                <input class="input" type="text" name="category[<?php echo urlencode($k); ?>]">
                                        </td>
index 28fc8c6dcdb71a561f6bbf767a583507c5f42878..3baaf328ea2b5127e01d389f78918ab68d3c928b 100644 (file)
@@ -44,7 +44,7 @@
 
 </section>
 
-<section>
+<section class="section">
 <?php if(!empty($tagCollection)) { ?>
 <div class="columns">
        <div class="column">
@@ -59,7 +59,7 @@
                                <tr>
                                        <td>
                                                <a href="index.php?p=overview&m=tag&id=<?php echo urlencode($k); ?>"
-                                               target="_blank"><?php echo $v['name']; ?></a></td>
+                                               target="_blank"><?php echo $v['name']; ?></a> <small>(#<?php echo $v['amount']; ?>)</small></td>
                                        <td>
                                                <input class="input" type="text" name="tag[<?php echo urlencode($k); ?>]">
                                        </td>