Author: dom
Date: 2009-06-19 23:55:19 +0100 (Fri, 19 Jun 2009)
New Revision: 1270
Modified:
trunk/lib/OpenGuides.pm
Log:
less hacky determination of empty node
Modified: trunk/lib/OpenGuides.pm
===================================================================
--- trunk/lib/OpenGuides.pm 2009-06-19 22:41:38 UTC (rev 1269)
+++ trunk/lib/OpenGuides.pm 2009-06-19 22:55:19 UTC (rev 1270)
@@ -285,15 +285,10 @@
oldid => $oldid,
enable_gmaps => 1,
wgs84_long => $wgs84_long,
- wgs84_lat => $wgs84_lat
+ wgs84_lat => $wgs84_lat,
+ empty_node => !$wiki->node_exists($id)
);
- $tt_vars{empty_node} = !($tt_vars{content} ||
- $tt_vars{coord_field_1_value} ||
- $tt_vars{coord_field_2_value} ||
- $tt_vars{latitude} ||
- $tt_vars{longitude});
-
# Hide from search engines if showing a specific version.
$tt_vars{'deter_robots'} = 1 if $args{version};