Skip to content

Commit

Permalink
minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
FND committed May 11, 2008
1 parent 8b3f7a0 commit 4da7853
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/pluginLibrary/index.php
Expand Up @@ -124,6 +124,8 @@ function processPluginTiddlers($xml, $oldStoreFormat = false) {
$source = $t->slices->source;
if(!$source || $source && !(strpos($source, $currentRepository->URI) === false)) // DEBUG: www handling (e.g. http://foo.bar = http://www.foo.bar)
storePlugin($t);
else
addLog("skipped tiddler " . $tiddler->title . " in repository " . $currentRepository);
}
}

Expand All @@ -150,9 +152,9 @@ function getSlices($text) {
function storePlugin($tiddler) {
global $currentRepository;
if(pluginExists($currentRepository->ID, $tiddler->title))
print_r($tiddler); // DEBUG
echo "updating plugin " . $tiddler->title; // DEBUG
else
addLog("skipped tiddler " . $tiddler->title . " in repository " . $currentRepository);
echo "adding plugin " . $tiddler->title;
}

function pluginExists($repoID, $pluginName) {
Expand Down

0 comments on commit 4da7853

Please sign in to comment.