dedecms wap 上一篇 下一篇 链接出错

 

打开 \include\arc.archives.class.php 文件

大约在839 行,查找  $mlink = 'view.php?aid='.$preRow['id'];        修改为  $mlink = 'view.php?aid='.$nextRow['id'];   

if(is_array($nextRow))
            {
                if ( defined('DEDEMOB') )
                {
                    $mlink = 'view.php?aid='.$preRow['id'];   修改为 $mlink = 'view.php?aid='.$nextRow['id'];            
                } else {
                    $mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],
                    $nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);
                }
    
                $this->PreNext['next'] = "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
                $this->PreNext['nextimg'] = "<a href='$mlink'><img src=\"{$nextRow['litpic']}\" alt=\"{$nextRow['title']}\"/></a> ";
            }
            else
            {
                $this->PreNext['next'] = "下一篇:没有了 ";
                $this->PreNext['nextimg'] ="<a href='javascript:void(0)' alt=\"\"><img src=\"/templets/default/images/nophoto.jpg\" alt=\"对不起,没有下一图集了!\"/></a>";
            }
        }

 

posted @ 2018-12-18 10:11  KSnow  阅读(387)  评论(0编辑  收藏  举报