[vanillin commit] r292 - trunk/themes

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 6, 2007, 1:28:50 PM10/6/07
to vanilli...@googlegroups.com
Author: helgith
Date: Sat Oct 6 10:28:47 2007
New Revision: 292

Modified:
trunk/themes/settings_globals_form.php

Log:
ObjectFactory within Context is dead, lets move over to the new way.

Modified: trunk/themes/settings_globals_form.php
==============================================================================
--- trunk/themes/settings_globals_form.php (original)
+++ trunk/themes/settings_globals_form.php Sat Oct 6 10:28:47 2007
@@ -1,5 +1,6 @@
<?php
// Note: This file is included from the
library/Vanilla/Vanilla.Control.GlobalsForm.php control.
+$of = ObjectFactory::getInstance();
echo '<div id="Form" class="Account GlobalsForm">';
if (ForceIncomingBool('Success',0)) echo '<div id="Success">'.$this->Context->GetDefinition('GlobalApplicationChangesSaved').'</div>';
echo '<fieldset>
@@ -40,7 +41,7 @@
<li>
<label for="ddDiscussionsPerPage">'.$this->Context->GetDefinition('DiscussionsPerPage').'</label>
';
- $Selector = $this->Context->ObjectFactory->NewObject('Select');
+ $Selector = $of->NewObject('Select');
$Selector->CssClass = 'SmallSelect';
$Selector->Name = 'DISCUSSIONS_PER_PAGE';
$Selector->Attributes = ' id="ddDiscussionsPerPage"';
@@ -88,8 +89,8 @@
$Selector->Name = 'DISCUSSION_POST_THRESHOLD';
$Selector->SelectedValue = $this->Context->Configuration['DISCUSSION_POST_THRESHOLD'];

- $SecondsSelector = $this->Context->ObjectFactory->NewObject('Select');
- $SecondsSelector2 = $this->Context->ObjectFactory->NewObject('Select');
+ $SecondsSelector = $of->NewObject('Select');
+ $SecondsSelector2 = $of->NewObject('Select');
$SecondsSelector->CssClass = 'SmallSelect';
$SecondsSelector2->CssClass = 'SmallSelect';
for ($i = 10; $i < 601; $i++) {

Reply all
Reply to author
Forward
0 new messages