Diff for Metafox/rewrite.php between version 1.7 and 1.8
| version 1.7, 2012/10/10 15:56:17 |
version 1.8, 2012/10/10 18:28:51 |
| Line 245 if (strlen($link) > 0 |
|
| Line 245 if (strlen($link) > 0 |
|
| && strlen($args[0]) > 0) |
&& strlen($args[0]) > 0) |
| { |
{ |
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| $ar = ezin_validate_IDs(array('article_id' => $args[0])); |
// check article |
| |
if (ezin_exists_article($args[0]) |
| |
&& ezin_exists_section($args[0])) |
| |
{ |
| |
$ar = ezin_validate_IDs(array('article_id' => $args[0])); |
| |
} else { |
| |
$ar = ezin_validate_IDs(array('section_id' => $args[0])); |
| |
} |
| if ($ezin_cfg['redirect_equal_url'] == 1) { |
if ($ezin_cfg['redirect_equal_url'] == 1) { |
| // redirect for old access-key |
// redirect for old access-key |
| if (isset($ar['redirect']) |
if (isset($ar['redirect']) |
Platon Group <platon@platon.org> http://platon.org/
|
|