Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=homepage-ng.git;a=commitdiff;h=0cd6e3954832f9f61f007a57feea8277f24a6c1b

commit 0cd6e3954832f9f61f007a57feea8277f24a6c1b
Author: PacMiam <[email protected]>
Date:   Mon Jan 6 10:53:08 2014 +0100

* fix top_path and remove index entry in menu.xml

diff --git a/frugalware/lib/config.inc.php b/frugalware/lib/config.inc.php
index 1552509..457ac7e 100644
--- a/frugalware/lib/config.inc.php
+++ b/frugalware/lib/config.inc.php
@@ -16,8 +16,7 @@ $fwng_root = $http_mode . "://" . $_SERVER["SERVER_NAME"] . 
"/";

$adodb_path = "/usr/share/php";
$trans_path="/home/ftp/pub/other/translations/";
-//~ $top_path = "/home/ftp/pub/frugalware/frugalware-current";
-$top_path = $fwng_root."static";
+$top_path = "/home/ftp/pub/frugalware/frugalware-current";
$cache_path = "/var/cache/homepage";
$docs_path = $top_path."/docs";
$top_path_stable = "/home/ftp/pub/frugalware/frugalware-stable";
diff --git a/frugalware/packages.php b/frugalware/packages.php
index 3efa7f7..a3b065e 100644
--- a/frugalware/packages.php
+++ b/frugalware/packages.php
@@ -352,7 +352,7 @@ function res_show( $res_set, $what, $search=null )
switch ($what)
{
case 'l':
-            $title = gettext( 'Listing groups' );
+            $title = "<img src=\"" . $fwng_root . "images/icons/magnify.png\" 
/>" . gettext( 'Listing groups' );
$total = 0;
$content = "<div align=\"left\">\n";
for ( $i = 0, $j = 1; $i < count( $res_set ); $i++, $j++ )
@@ -364,9 +364,9 @@ function res_show( $res_set, $what, $search=null )
fwemptybox($title, $content);
break;
case 'g':
-            $title = gettext( 'Listing contents of group:' ). " " . $search;
+            $title = "<img src=\"" . $fwng_root . "images/icons/magnify.png\" 
/>" . gettext( 'Listing contents of group:' ). " " . $search;
case 'p':
-            if(!isset($title)) $title = gettext("Search result for:")." 
".$search;
+            if(!isset($title)) $title = "<img src=\"" . $fwng_root . 
"images/icons/magnify.png\" />" . gettext("Search result for:")." ".$search;
$titleprefix = "Search  results for $search - ";
$content = "<div align=\"left\">\n";
for ($i=0,$j=1;$i<count($res_set);$i++,$j++) {
@@ -376,7 +376,7 @@ function res_show( $res_set, $what, $search=null )
fwemptybox($title, $content);
break;
case 'f':
-            $title = gettext("Search result for:")." ".$search;
+            $title = "<img src=\"" . $fwng_root . "images/icons/magnify.png\" 
/>" . gettext("Search result for:")." ".$search;
$content = "<div align=\"left\">\n";
for ($i=0,$j=1;$i<count($res_set);$i++,$j++) {
$content .= "<p>".$j.". <a 
href=\"/packages/".$res_set[$i]['id']."/files\">".$res_set[$i]['pkgname']."</a> 
".$res_set[$i]['pkgver']."<br />".gettext("Version:")." 
".$res_set[$i]['fwver']."; ".gettext("Architecture:")." 
".$res_set[$i]['arch']."</p>\n";
diff --git a/frugalware/xml/menu.xml b/frugalware/xml/menu.xml
index cb186b5..0faea4f 100644
--- a/frugalware/xml/menu.xml
+++ b/frugalware/xml/menu.xml
@@ -20,7 +20,6 @@
<menu>
<_link>Frugalware</_link>
<submenus>
-            <_sublink url="">Index</_sublink>
<_sublink url="news">News</_sublink>
<_sublink url="docs">Documentation</_sublink>
<_sublink url="screenshots">Screenshots</_sublink>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to