summaryrefslogtreecommitdiff
path: root/modules/drupal.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-05 15:19:29 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-05 15:19:29 +0000
commitf66a1975d59ea03e043b4eabdfc7d8d0144412eb (patch)
tree4e834fddb80ac4fbac321230af661236122e283f /modules/drupal.module
parent24899dba42e0d221665479ff55cb60d5bbcf96b9 (diff)
downloadbrdo-f66a1975d59ea03e043b4eabdfc7d8d0144412eb.tar.gz
brdo-f66a1975d59ea03e043b4eabdfc7d8d0144412eb.tar.bz2
- Patch #39697 by Cvbge: fixed critical bug in drupal.module and fixed the documentation.
Diffstat (limited to 'modules/drupal.module')
-rw-r--r--modules/drupal.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/drupal.module b/modules/drupal.module
index 18d89b4d0..031a95e5c 100644
--- a/modules/drupal.module
+++ b/modules/drupal.module
@@ -32,14 +32,14 @@ function drupal_help($section) {
<li>administer Drupal <a href="%admin-settings-drupal">administer &gt;&gt; settings &gt;&gt; drupal</a>.</li>
</ul>
', array('%file-cron' => 'cron.php', '%file-xmlrpc' => 'xmlrpc.php', '%admin-settings-drupal' => url('admin/settings/drupal')));
- $output .= '<p>'. t('If you maintain a directory of sites, you can list them on a page using the <code>drupal_directory_page()</code> function. Sample instructions:
+ $output .= '<p>'. t('If you maintain a directory of sites, you can list them on a page using the <code>drupal_client_page()</code> function. Sample instructions:
<ul>
<li>Enable the page module. Select create content &gt;&gt; page.</li>
<li>For input format, select PHP code.</li>
<li>Give the page a title. For body, put:
<pre>
&lt;?php
-print drupal_directory_page();
+print drupal_client_page();
?&gt;
</pre>
<li>Save the page.</li>
@@ -187,7 +187,7 @@ function drupal_client_ping($client, $system) {
db_query("UPDATE {client} SET link = '%s', name = '%s', mail = '%s', slogan = '%s', mission = '%s', users = %d, nodes = %d, version = '%s', changed = '%s' WHERE cid = %d", $client['uid'], $client['link'], $client['name'], $client['mail'], $client['slogan'], $client['mission'], $client['users'], $client['nodes'], $client['version'], time(), $client['cid']);
}
else {
- $client['cid'] = db_next_id('client');
+ $client['cid'] = db_next_id('{client}_cid');
db_query("INSERT INTO {client} (cid, link, name, mail, slogan, mission, users, nodes, version, created, changed) VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $client['cid'], $client['link'], $client['name'], $client['mail'], $client['slogan'], $client['mission'], $client['users'], $client['nodes'], $client['version'], time(), time());
}
if (is_array($system)) {