summaryrefslogtreecommitdiffstats
path: root/zoom.php
diff options
context:
space:
mode:
Diffstat (limited to 'zoom.php')
-rw-r--r--zoom.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/zoom.php b/zoom.php
index e9ec55c..d843ea5 100644
--- a/zoom.php
+++ b/zoom.php
@@ -131,7 +131,7 @@ if ( !isset($name) || !$name ) {
$summary['Description'] = (
(isset($fedpkg['devel']['package']['description'])) ?
$fedpkg['devel']['package']['description'] :
- $ajax_infos
+ ($ajax_infos ?? '')
);
if ( $rpm->url ) {
$summary['URL'] = $rpm->url;
@@ -169,11 +169,11 @@ if ( !isset($name) || !$name ) {
$summary['Fedora git'] = "https://src.fedoraproject.org/cgit/rpms/$name.git/";
$summary['Packages'] = "https://apps.fedoraproject.org/packages/$name";
- if (isset($_GET['pkgdb'])) {
- $fedpkg = $fedcli->getPackageInfo($name);
- } else {
+ //if (isset($_GET['pkgdb'])) {
+ // $fedpkg = $fedcli->getPackageInfo($name);
+ //} else {
$fedpkg = false;
- }
+ //}
$i=0;
$prev=false;
@@ -182,12 +182,14 @@ if ( !isset($name) || !$name ) {
$rpm->rpmurl = $rpm->repourl . $rpm->location;
}
$rpm->askpkgdb = false;
+ /*
if ($rpm->active
&& (substr($rpm->repo_main, 0, 1) == 'f'
|| substr($rpm->repo_sub, 0, 4) == 'epel')
) {
$rpm->askpkgdb = true;
}
+ */
$packages[] = $rpm;
if ( $rpm->repo_main != $prev ) {
$prev = $rpm->repo_main;
@@ -212,10 +214,13 @@ $ariane[] = array(
'url' => '#',
'text' => 'Package: ' . $name
);
+/*
$ajax_infos = '<span class="ajax">(wait for ajax or <a href="' .
$_SERVER['PHP_SELF'] . '?rpm='.$name.
'&amp;pkgdb=1">reload with pkgdb</a>)</span>';
$smarty->assign('ajax_infos', $ajax_infos);
+*/
+$smarty->assign('ajax_infos', '');
$smarty->assign('ariane', $ariane);
$smarty->assign('page_title', 'Package: ' . $name);