Procházet zdrojové kódy

fixed other bug in use of themes

Victor De la Rocha před 15 roky
rodič
revize
9fe291b0ed
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      index.php

+ 1 - 2
index.php Zobrazit soubor

@@ -123,7 +123,6 @@ $theme = new themes;
123 123
 								$row['Date_Added'] = $formatedDate;
124 124
 								$row['Permalink'] = $permalink;
125 125
 								$row['postType'] = $postType;
126
-
127 126
                                 switch ($postType){
128 127
                                         case "1":
129 128
                                         		$row['Title'] = $register["title"];
@@ -220,7 +219,7 @@ $theme = new themes;
220 219
 				$row['Date_Added'] = $formatedDate;
221 220
 				$row['Permalink'] = $permalink;
222 221
 				$postType = $tumble->getType($register["id_post"]);
223
-				$theme->set('postType',$postType);
222
+				$row['postType'] = $postType;
224 223
                 switch ($postType) {
225 224
                         case "1":
226 225
 								$row['Title'] = $register["title"];