mirror of
https://github.com/Anvilcraft/jensmemes
synced 2024-11-25 22:02:30 +01:00
Update memecat.php
This commit is contained in:
parent
246feef307
commit
38de26210a
1 changed files with 2 additions and 4 deletions
|
@ -31,9 +31,8 @@ foreach ($cats as $cate){
|
||||||
';
|
';
|
||||||
|
|
||||||
foreach ($cats as $catdis) {
|
foreach ($cats as $catdis) {
|
||||||
if($catdis->name!=$cate->name){
|
if($catdis->id!=$cate->id){
|
||||||
$cat_dis = str_replace(" ", '_', $catdis->name);
|
echo '$("#'.$catdis->name.'").hide();';
|
||||||
echo '$("#'.$cat_dis.'").hide();';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '
|
echo '
|
||||||
|
@ -58,7 +57,6 @@ echo '
|
||||||
global $cats;
|
global $cats;
|
||||||
$c = 0;
|
$c = 0;
|
||||||
foreach ($cats as $cate) {
|
foreach ($cats as $cate) {
|
||||||
$cate->id = str_replace(' ', '_', $cate->name);
|
|
||||||
if($c==0){
|
if($c==0){
|
||||||
echo '<option value="'.$cate->id.'" selected>'.$cate->name.'</option>';
|
echo '<option value="'.$cate->id.'" selected>'.$cate->name.'</option>';
|
||||||
$c=1;
|
$c=1;
|
||||||
|
|
Loading…
Reference in a new issue