Change read more limit in a platform setting

skala
Patrick Cool 15 years ago
parent 0c09148098
commit a7003c23de
  1. 2
      main/inc/lib/blog.lib.php
  2. 3
      main/install/migrate-db-1.8.6.1-1.8.6.2-pre.sql

@ -765,7 +765,7 @@ class Blog {
$blog_post_time = date('H:i',strtotime($blog_post['date_creation']));
// Create an introduction text (but keep FULL sentences)
$limit = 100; //nmbr of words in introduction text
$limit = api_get_setting('read_more_limit'); //nmbr of words in introduction text
$introduction_text = "";
$words = 0;
$tok = strtok(make_clickable(stripslashes($blog_post['full_text'])), " ");

@ -70,6 +70,9 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
INSERT INTO settings_options (variable, value, display_text) VALUES ('user_order_by','firstname','FirstName');
INSERT INTO settings_options (variable, value, display_text) VALUES ('user_order_by','lastname','LastName');
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('read_more_limit', NULL , 'textfield', 'Tools', '100', 'ReadMoreLimitTitle', 'ReadMoreLimitComment', NULL , NULL , '1');
-- xxSTATSxx
ALTER TABLE track_e_exercices ADD COLUMN expired_time_control datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE track_e_online ADD INDEX (course);

Loading…
Cancel
Save