[www.kde.org] [Bug 349751] Wrongs links to ebn (Code Checking + Documentation Sanitation) generated from data in *.json files
Burkhard Lueck
lueck at hube-lueck.de
Wed Jul 8 15:25:54 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=349751
--- Comment #4 from Burkhard Lueck <lueck at hube-lueck.de> ---
Diff with comments for necessary changes in function ebnUrlBase()
websites/capacity$ git diff
diff --git a/includes/classes/class_appdata.inc
b/includes/classes/class_appdata.inc
index cfa47e4..c0fb7fe 100644
--- a/includes/classes/class_appdata.inc
+++ b/includes/classes/class_appdata.inc
@@ -259,10 +259,9 @@ class AppData
function ebnUrlBase() {
// examples:
// KDE/kdeedu/parley:
http://englishbreakfastnetwork.org/krazy/reports/kde-4.x/kdeedu/parley/index.html
- // KDE/kdebase/apps/dolphin:
http://englishbreakfastnetwork.org/krazy/reports/kde-4.x/kdebase-apps/dolphin/index.html
+ // KDE/applications/dolphin:
http://englishbreakfastnetwork.org/krazy/reports/kde-4.x/applications/dolphin/index.html
// extragear/graphics/digikam:
http://englishbreakfastnetwork.org/krazy/reports/extragear/graphics/digikam/index.html
- // koffice/kword:
http://englishbreakfastnetwork.org/krazy/reports/bundled-apps/koffice/kword/index.html
- // amarok (gitorious):
http://englishbreakfastnetwork.org/krazy/reports/extragear/multimedia/amarok-git/index.html
+ // calligra/krita:
http://englishbreakfastnetwork.org/krazy/reports/bundled-apps/calligra/krita/index.html
$ebn = '';
if ($this->data['repository'][0] == 'svn') {
@@ -280,7 +279,7 @@ class AppData
}
} else if (in_array('extragear', $parts)) {
$ebn = 'extragear/'.$parts[$len-2].'/'.$parts[$len-1];
- } else if (in_array('koffice', $parts)) {
+ } else if (in_array('koffice', $parts)) { //no koffice on
kde,org, remove this "else if"
$ebn = 'bundled-apps/'.$parts[$len-2].'/'.$parts[$len-1];
}
} else if($this->data['repository'][0] == 'git') {
@@ -291,6 +290,9 @@ class AppData
if ($parts[0] == 'kde') {
$ebn = "kde-4.x/" . $parts[1] . "/" .
strtolower($this->data['repository'][1]);
} else {
+// replace "else" with "else if ($parts[0] == 'extragear') {}
+// and with "else if ($parts[0] == 'calligra') {}
+// and with "else if ($parts[0] == 'applications') {}
$ebn = $parts[0] . "/" . $parts[1] . "/" .
strtolower($this->name());
}
return $ebn;
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the kde-www
mailing list