projects
/
diogenes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the 'delete' method return success or error
[diogenes.git]
/
include
/
Barrel
/
Page.php
diff --git
a/include/Barrel/Page.php
b/include/Barrel/Page.php
index
baa9fcc
..
b27101d
100644
(file)
--- a/
include/Barrel/Page.php
+++ b/
include/Barrel/Page.php
@@
-87,7
+87,7
@@
class Diogenes_Barrel_Page
if ($num > 0)
{
$caller->info(__("Not deleting page, it has child pages!"));
if ($num > 0)
{
$caller->info(__("Not deleting page, it has child pages!"));
- return;
+ return
false
;
}
$rcs = $caller->getRcs();
}
$rcs = $caller->getRcs();
@@
-97,6
+97,7
@@
class Diogenes_Barrel_Page
system("rm -rf ". escapeshellarg($rcs->spoolPath($dir)));
$barrel->compileTree();
$barrel->readTree();
system("rm -rf ". escapeshellarg($rcs->spoolPath($dir)));
$barrel->compileTree();
$barrel->readTree();
+ return true;
}
}
@@
-216,7
+217,7
@@
class Diogenes_Barrel_Page
if ($props['PID'])
{
$cache = $globals->plugins->readCache($this->barrel->pluginsCacheFile, $this->barrel->alias);
if ($props['PID'])
{
$cache = $globals->plugins->readCache($this->barrel->pluginsCacheFile, $this->barrel->alias);
- $plugs_active = $globals->plugins->cache
Get
Active($cache, $this->barrel->alias, $props['PID']);
+ $plugs_active = $globals->plugins->cache
d
Active($cache, $this->barrel->alias, $props['PID']);
foreach($plugs_active as $plugentry)
{
$plug_h = $globals->plugins->load($plugentry);
foreach($plugs_active as $plugentry)
{
$plug_h = $globals->plugins->load($plugentry);