From b2ae578c977b5920dd387cb6bc6b731c09259c49 Mon Sep 17 00:00:00 2001
From: "Johan \"Papa\" Cwiklinski" <trasher@odysseus.(none)>
Date: Sun, 30 May 2010 18:18:46 +0200
Subject: Smarty variable assigned twice, export reposlist function so it could
 be used

---
 rpm.php | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/rpm.php b/rpm.php
index 11b30c2..5073f9f 100644
--- a/rpm.php
+++ b/rpm.php
@@ -36,8 +36,6 @@
 */
 require 'main.inc.php';
 
-$smarty->assign('ariane', $ariane);
-
 $what=(isset($_GET["what"]) ? $_GET["what"] : "%fedora");
 $type=(isset($_GET["type"]) ? $_GET["type"] : "pecl");
 
@@ -51,32 +49,6 @@ $smarty->assign('type', $type);
 $smarty->assign('what', $what);
 $smarty->assign('page_title', strtoupper($type). ' extensions in Fedora');
 
-/**
-* Get repositories list
-*
-* @param object $db a reference to the database
-*
-* @return array
-*/
-function listRepos($db)
-{
-    $repos = array();
-    $res=$db->query("SELECT * FROM repo WHERE active=1 ORDER BY ID");
-    if ( $res ) {
-        while ($repo = $res->fetchObject()) {
-            $repos[$repo->main][$repo->sub]=$repo;
-        }
-    }
-    // echo "<pre>"; print_r($repos);echo "</pre>";
-    foreach ( $repos as $repomain ) {
-        foreach ($repomain as $repo) {
-            $repos[$repo->main][$repo->sub] = $repo;
-            break;
-        }
-    }
-    return $repos;
-}
-
 /**
 * Retrieve packages informations
 *
-- 
cgit