Changeset 11425


Ignore:
Timestamp:
Jun 19, 2011, 10:24:47 AM (13 years ago)
Author:
mistic100
Message:

delete compiled templates on config save

Location:
extensions/TweetThis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/TweetThis/admin.php

    r11419 r11425  
    1616  conf_update_param('TweetThis', implode(',', $conf['TweetThis']));
    1717  array_push($page['infos'], l10n('Information data registered in database'));
     18 
     19  // the prefilter changes, we must delete compiled templatess
     20  $template->delete_compiled_templates();
    1821}
    1922
  • extensions/TweetThis/maintain.inc.php

    r11419 r11425  
    11<?php
    22function plugin_install()
    3 {
    4   global $conf;
    5  
    6   pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("TweetThis","twitter-a,toolbar","TweetButton config");');
     3{
     4  pwg_query('INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("TweetThis","twitter-a,toolbar","TweetThis config");');
    75}
    86
    97function plugin_uninstall()
    108{
    11   pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="TweetThis" LIMIT 1');
     9  pwg_query('DELETE FROM '.CONFIG_TABLE.' WHERE param="TweetThis" LIMIT 1;');
    1210}
    1311
Note: See TracChangeset for help on using the changeset viewer.