1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 22:53:01 +02:00

Linkgen Fixes. Added e107::url() backward compatibility with earlier SEF creation method.

This commit is contained in:
Cameron
2016-03-08 13:53:58 -08:00
parent 7e55a677b3
commit daf5495214
9 changed files with 133 additions and 23 deletions

View File

@@ -0,0 +1,42 @@
<?php
/*
* e107 Bootstrap CMS
*
* Copyright (C) 2008-2015 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* IMPORTANT: Make sure the redirect script uses the following code to load class2.php:
*
* if (!defined('e107_INIT'))
* {
* require_once("../../class2.php");
* }
*
*/
if (!defined('e107_INIT')) { exit; }
// v2.x Standard - Simple mod-rewrite module.
class download_url // plugin-folder + '_url'
{
function config()
{
$config = array();
$config['index'] = array(
// 'regex' => '^download/?$', // matched against url, and if true, redirected to 'redirect' below.
'alias' => 'download',
'sef' => '{alias}', // used by e107::url(); to create a url from the db table.
'redirect' => '{e_PLUGIN}download/download.php', // file-path of what to load when the regex returns true.
);
return $config;
}
}