[pLog-svn] r5320 - in plugins/branches/lifetype-1.2/sitemap: . class/view templates
mark at devel.lifetype.net
mark at devel.lifetype.net
Tue Apr 17 06:49:44 EDT 2007
Author: mark
Date: 2007-04-17 06:49:44 -0400 (Tue, 17 Apr 2007)
New Revision: 5320
Modified:
plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemappluginsettingsview.class.php
plugins/branches/lifetype-1.2/sitemap/readme.txt
plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings.template
Log:
Maybe just pass the sitemapurl to the plugin setting view, instead of whole object.
Modified: plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemappluginsettingsview.class.php
===================================================================
--- plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemappluginsettingsview.class.php 2007-04-17 10:33:11 UTC (rev 5319)
+++ plugins/branches/lifetype-1.2/sitemap/class/view/adminsitemappluginsettingsview.class.php 2007-04-17 10:49:44 UTC (rev 5320)
@@ -23,9 +23,9 @@
// create a view and export the settings to the template
$this->setValue( "pluginEnabled", $pluginEnabled );
$this->setValue( "notifyGoogleEnabled", $notifyGoogle );
-
+ // get the sitemap url from sitemap plugin and pass to the plugin setting view
$plugins = $this->_pm->getPlugins();
- $this->setValue( 'sitemap', $plugins['sitemap'] );
+ $this->setValue( 'siteMapUrl', $plugins['sitemap']->getSiteMapUrl() );
parent::render();
}
Modified: plugins/branches/lifetype-1.2/sitemap/readme.txt
===================================================================
--- plugins/branches/lifetype-1.2/sitemap/readme.txt 2007-04-17 10:33:11 UTC (rev 5319)
+++ plugins/branches/lifetype-1.2/sitemap/readme.txt 2007-04-17 10:49:44 UTC (rev 5320)
@@ -16,8 +16,9 @@
</Files>
<Files "sitemap.gz">
+ Order deny,allow
Allow from all
-</files>
+</Files>
Add the following lines to the lifetype/.htaccess
Modified: plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings.template
===================================================================
--- plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings.template 2007-04-17 10:33:11 UTC (rev 5319)
+++ plugins/branches/lifetype-1.2/sitemap/templates/pluginsettings.template 2007-04-17 10:49:44 UTC (rev 5320)
@@ -30,7 +30,7 @@
</div>
{if $pluginEnabled}
- {$locale->tr("link_to_sitemap")}<a href="{$sitemap->getSiteMapUrl()}">{$sitemap->getSiteMapUrl()}</a>
+ {$locale->tr("link_to_sitemap")}<a href="{$siteMapUrl}">{$siteMapUrl}</a>
{/if}
</fieldset>
More information about the pLog-svn
mailing list