Completed
Branch master (caa4fc)
by Michael
06:53 queued 04:04
created

view.tag.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
//  ------------------------------------------------------------------------ //
3
//                XOOPS - PHP Content Management System                      //
4
//                  Copyright (c) 2005-2006 Herve Thouzard                     //
5
//                     <http://www.herve-thouzard.com/>                      //
6
//  ------------------------------------------------------------------------ //
7
//  This program is free software; you can redistribute it and/or modify     //
8
//  it under the terms of the GNU General Public License as published by     //
9
//  the Free Software Foundation; either version 2 of the License, or        //
10
//  (at your option) any later version.                                      //
11
//                                                                           //
12
//  You may not change or alter any portion of this comment or credits       //
13
//  of supporting developers from this source code or any supporting         //
14
//  source code which is considered copyrighted (c) material of the          //
15
//  original comment or credit authors.                                      //
16
//                                                                           //
17
//  This program is distributed in the hope that it will be useful,          //
18
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
19
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
20
//  GNU General Public License for more details.                             //
21
//                                                                           //
22
//  You should have received a copy of the GNU General Public License        //
23
//  along with this program; if not, write to the Free Software              //
24
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
25
//  ------------------------------------------------------------------------ //
26
27
/*
28
 * Created on 03/12/2008
29
 *
30
 * This page will display a list of articles which belong to a tag
31
 *
32
 * @package News
33
 * @author Herve Thouzard of Herve Thouzard
34
 * @copyright (c) Herve Thouzard (http://www.herve-thouzard.com)
35
 */
36
require_once __DIR__ . '/header.php';
37
require_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php';
38
39 View Code Duplication
if (!news_getmoduleoption('tags') || !xoops_isActiveModule('tag')) {
0 ignored issues
show
This code seems to be duplicated across your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
40
    redirect_header('index.php', 2, _ERRORS);
41
}
42
require XOOPS_ROOT_PATH . '/modules/tag/view.tag.php';
43