Completed
Pull Request — master (#324)
by Mirko
07:45
created
htdocs/addtolist.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  *  Unicode Reminder メモ
6 6
  ***************************************************************************/
7 7
 
8
-require __DIR__ . '/lib2/web.inc.php';
8
+require __DIR__.'/lib2/web.inc.php';
9 9
 
10 10
 $tpl->name = 'addtolist';
11 11
 $tpl->menuitem = MNU_CACHES_ADDTOLIST;
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 $tpl->assign('cacheid', $cacheid);
23 23
 
24 24
 if (isset($_REQUEST['cancel'])) {
25
-    $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
25
+    $tpl->redirect('viewcache.php?cacheid='.$cacheid);
26 26
 }
27 27
 
28 28
 $newlist_name = isset($_REQUEST['newlist_name']) ? trim($_REQUEST['newlist_name']) : false;
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 }
32 32
 $newlist_public = isset($_REQUEST['newlist_public']);
33 33
 $newlist_watch = isset($_REQUEST['newlist_watch']);
34
-$default_list = isset($_REQUEST['listid']) ? (int) $_REQUEST['listid'] : cachelist::getMyLastAddedToListId();
34
+$default_list = isset($_REQUEST['listid']) ? (int)$_REQUEST['listid'] : cachelist::getMyLastAddedToListId();
35 35
 
36 36
 if (isset($_REQUEST['save']) && isset($_REQUEST['listid'])) {
37 37
     $listid = $_REQUEST['listid'] + 0;
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
                     $cachelist->watch(true);
49 49
                 }
50 50
             }
51
-            $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
51
+            $tpl->redirect('viewcache.php?cacheid='.$cacheid);
52 52
         }
53 53
     } else {
54 54
         $cachelist = new cachelist($listid);
55 55
         if ($cachelist->exist()) {
56 56
             $cachelist->addCacheByID($cacheid);
57 57
         }
58
-        $tpl->redirect('viewcache.php?cacheid=' . $cacheid);
58
+        $tpl->redirect('viewcache.php?cacheid='.$cacheid);
59 59
     }
60 60
 }
61 61
 
Please login to merge, or discard this patch.