2011-12-07, 05:10:52
I would like to know where the following plugin hooks are launched.. They do not seem to work the way I understand they should.
Hook 1: settings-website
Hook 2: settings-user
I would think that these 2 hooks would be launched right before the files are created.
Ex below:
Instead of
I would expect it to be
Am I misinterpreting the use of these hooks?
Hook 1: settings-website
Hook 2: settings-user
I would think that these 2 hooks would be launched right before the files are created.
Ex below:
Instead of
Code:
# create website xml file
createBak($wfile, GSDATAOTHERPATH, GSBACKUPSPATH.'other/');
$xmls = new SimpleXMLExtended('<item></item>');
$note = $xmls->addChild('SITENAME');
$note->addCData($SITENAME);
$note = $xmls->addChild('SITEURL');
$note->addCData($SITEURL);
$note = $xmls->addChild('TEMPLATE');
$note->addCData($TEMPLATE);
$xmls->addChild('PRETTYURLS', $PRETTYURLS);
$xmls->addChild('PERMALINK', $PERMALINK);
if (! XMLsave($xmls, GSDATAOTHERPATH . $wfile) ) {
$error = i18n_r('CHMOD_ERROR');
}
I would expect it to be
Code:
# create website xml file
createBak($wfile, GSDATAOTHERPATH, GSBACKUPSPATH.'other/');
$xmls = new SimpleXMLExtended('<item></item>');
$note = $xmls->addChild('SITENAME');
$note->addCData($SITENAME);
$note = $xmls->addChild('SITEURL');
$note->addCData($SITEURL);
$note = $xmls->addChild('TEMPLATE');
$note->addCData($TEMPLATE);
$xmls->addChild('PRETTYURLS', $PRETTYURLS);
$xmls->addChild('PERMALINK', $PERMALINK);
<?php exec_action('settings-website'); ?>
if (! XMLsave($xmls, GSDATAOTHERPATH . $wfile) ) {
$error = i18n_r('CHMOD_ERROR');
}
Am I misinterpreting the use of these hooks?