зеркало из https://github.com/mozilla/pjs.git
Added flexibility for human-readable args in rss.php.
Added feeds.php, to list possible feeds -- reference page.
This commit is contained in:
Родитель
1faf1a5e02
Коммит
c9fa04c9b7
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
/**
|
||||
* Home page for extensions, switchable on application.
|
||||
*
|
||||
* @package amo
|
||||
* @subpackage docs
|
||||
*/
|
||||
|
||||
startProcessing('feeds.tpl', null, $compileId,'nonav');
|
||||
require_once('includes.php');
|
||||
|
||||
// Assign template variables.
|
||||
$tpl->assign(
|
||||
array( 'title' => 'Feeds',
|
||||
'content' => 'feeds.tpl')
|
||||
);
|
||||
?>
|
|
@ -25,9 +25,11 @@ switch (strtolower($rssapp)) {
|
|||
|
||||
$rsstype = !empty($_GET['type']) && ctype_alpha($_GET['type']) ? $_GET['type'] : null;
|
||||
switch (strtolower($rsstype)) {
|
||||
case 'themes':
|
||||
case 't':
|
||||
$clean['type'] = 't';
|
||||
break;
|
||||
case 'extensions':
|
||||
case 'e':
|
||||
default:
|
||||
$clean['type'] = 'e';
|
||||
|
|
Загрузка…
Ссылка в новой задаче