X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=cron%2Ftemplates.php;h=c5feda4ceccccea9118e6a25a2837ec6485e146b;hb=9c833cbaa6b865dda14760b7f448467ec1a912d6;hp=d7fa82e982e9a3ab58510e9c5d3803bf18b548ce;hpb=b42b2bf946332ad8544d53f610be9cb05e80bf56;p=mirrors%2FKyberia-bloodline.git diff --git a/cron/templates.php b/cron/templates.php index d7fa82e..c5feda4 100755 --- a/cron/templates.php +++ b/cron/templates.php @@ -1,13 +1,25 @@ -#!/usr/local/bin/php +#!/usr/bin/php query("select nodes.*,node_content.*,nodes.node_id as node_id from nodes left join node_content on nodes.node_id=node_content.node_id where node_type='14'"); +$set=$db->query("select nodes.*,node_content.*,nodes.node_id as node_id from nodes + left join node_content on nodes.node_id=node_content.node_id + where node_type='14'"); while ($set->next()) { $node_content=$set->getString('node_content'); @@ -18,8 +30,4 @@ while ($set->next()) { chown(OWN_TEMPLATE_DIR.$template_id.".tpl","www"); } - - - - -?> \ No newline at end of file +?>