Set default layout columns/widths hardcoded once (Bug #1307760)
And making sure that it exists in the db before using it.
This allows the fetching of the id of the default column widths to be
used in view layout page.
Also tidied up the js for the view layout page so it uses the value
from php rather than hardcoded string.
Also removed duplicate 'if (empty(self::$layoutcolumns)) { }'
statement from lib.view.php
Change-Id: Icf1b4292a256c5ff6d748c9e6046d6c71ea298b2
Signed-off-by: Robert Lyon <email address hidden>
Reviewed: https:/ /reviews. mahara. org/3354 gitorious. org/mahara/ mahara/ commit/ 9aff53a4946e257 0d486793169a1a0 b4a0a5b45c
Committed: http://
Submitter: Robert Lyon (<email address hidden>)
Branch: 1.9_STABLE
commit 9aff53a4946e257 0d486793169a1a0 b4a0a5b45c
Author: Robert Lyon <email address hidden>
Date: Tue Apr 15 15:39:59 2014 +1200
Set default layout columns/widths hardcoded once (Bug #1307760)
And making sure that it exists in the db before using it.
This allows the fetching of the id of the default column widths to be
used in view layout page.
Also tidied up the js for the view layout page so it uses the value
from php rather than hardcoded string.
Also removed duplicate 'if (empty( self::$ layoutcolumns) ) { }'
statement from lib.view.php
Change-Id: Icf1b4292a256c5 ff6d748c9e6046d 6c71ea298b2
Signed-off-by: Robert Lyon <email address hidden>